Using Phpmailer to send messages uses an unencrypted SMTP server, and the SMTP server used this time is connected using SSL (secure Sockets Layer, Secure Sockets Layer).
Fortunately, Phpmailer support SSL SMTP server, online data, thought that the lower mouth, plus smtpsecure settings on it, but the fact is not so.
The port in the code is changed to 465, plus $
The example in this article describes how the PHP mailer class invokes a remote SMTP server to send mail implementations. Share to everyone for your reference, specific as follows:
PHP Mailer is a very useful PHP email Send class module, you can invoke the local SMTP send e-mail, you can call the remote SMTP send e-mail, but you need to pay attention to the use
[xmail@xmail log]$ telnet smtp.263.net 25Trying 211.150.96.25...Connected to smtp.263.net.Escape character is ’^]’.220 Welcome to coremail System(With Anti-Spam) 2.1 for 263(040326)HELO weiqiong@cctk.net250 smtp.263.netmail from:weiqiong@cctk.net250 Okrcpt to:g2_t1@263.net250 Okdata354 End data with haha.250 Ok: queued as B9E452FF3Equit221 ByeConnection closed by
asp.net|smtp| create asp.net in the System.Web.Mail namespace there is a built-in class that sends emails, but this is only an illusion of CDOSYS. Developers can use an alternative to its SMTP mail service. In this article, I'll show you how to create a full-featured SMTP mail service for asp.net.
First, we create a class that inherits the TcpClient class of the
A script that sends an e-mail message may be one of the most common scripts you can find on a Web site, although it's simple, and a mail script can sometimes make the programmer very frustrated. PHP has a function called mail (), it only needs to know the recipient's address and the letter body can send the message, but to let mail () as you want to run you also need to solve some difficult problems.
For mail () to work, you must have an SMTP server
A script that sends a E-MAIL may be one of the most common scripts you can find on the Web site, although it is very simple, a mail script can sometimes make programmers very frustrated. in PHP, there is a function called mail (). It only needs to know the recipient's address and the sender of the email to send the email, but requires mail () you still need to solve some difficult problems to run as you want.
To enable mail () to run, you must have an SMTP
Smtp. php? Phpclasssmtp {* PublicVariables * var $ smtp_port; var $ time_out; var $ host_name; var $ log_file; var $ relay_host; var $ debug; var $ auth; var $ user; var $ pass; * PrivateVariables * var $ sock; * Constractor * functionsmtp ($ relay_h SMTP email server
Smtp. php
Class smtp
{
/* Public Variables */
V
Www. linuxforum. netJepheWu (2001-04-2118:16:42) 1. SMTP works in two situations: one is the transmission of email from the client to the server, and the other is the transmission from one server to another. SMTP is a request response protocol. commands and responses are based on ASCII text and end with CR and LF characters. The response includes one that indicates that
The original authorization code and working principle of the SMTP protocol. Www. linuxforum. netJepheWu (2001-04-2118:16:42) 1. SMTP works in two situations: one is to transfer an email from the client to the server, and the other is to transfer the email from one server to another. http://www.linuxforum.net Jephe Wu (18:16:42) 1. SMTP works in two situations: on
be sent in three ways:
1. using PHP functionsSendmailSend (recommended)2. connect to the SMTP server through SOCKET (ESMTP verification is supported)3. send an Email using the PHP function SMTP (only valid on Windows hosts, ESMTP verification not supported)
Because we use QQ Enterprise mail, we choose to: 2. connect to the SMTP server through SOCKET (ESMTP verif
Table (1) SMTP CodeCode definition421 service not available, hosts in the closing transmission channel brackets cannot provide normal services, close the transmission pipeline, and emails will be stuck on the host450 requested mail action not taken: the mail action required by mailbox unavailable cannot be executed: the mail cannot provide services, and the mail will be stuck on the host451 requested action aborted: Local error in processing requires
Basic structure of SMTP
The SMTP (Simple Mail Transfer Protocol) protocol is designed to ensure reliable and efficient delivery of e-mail. The TCP/IP protocol has an SMTP protocol in the application layer, but in fact it has nothing to do with the transport system and mechanism, requiring only a reliable data flow path. It can work on TCP, and it can work on pro
Because PHP does not provide out-of-the-box SMTP functions, it provides a less flexible mail () function that requires support on the server configuration and does not support SMTP authentication, and is not recommended for use in many situations. The purpose of this article is to specify the direction for the novice, and did not involve those advanced content, a limited level of their own, and also worry a
Document directory
Install the SMTP service on IIS 6.0
Start IIS manager from the "run" dialog box
Start IIS manager from the Management Service Console
Default settings
ASP. NET Configuration
Content type: Devdiv1. Transform: orcas2mtps.xslt.-->
To send emails from ASP. NET web applications, you must install and configure the Simple Mail Transfer Protocol (SMTP) Service for Internet Information Ser
Use a Socket to send an email (using the SMTP server to be verified ).? * Name: use Socket to send emails * Description: This class enables direct sending of emails using the SMTP server to be verified. See the article "sending emails with Socket":
* Name: use Socket to send an email* Description: This class allows you to directly send emails using the SMTP serv
This article mainly introduces the SMTP mail sending class for PHP to support SSL connections. The example analyzes the principles and skills of php to implement the smtp mail sending class and the methods to support SSL connections, for more information, see
This article mainly introduces the SMTP mail sending class for PHP to support SSL connections. The exampl
Smtp email sending is much more practical than phpmail functions. The mail function does not allow you to send emails as needed, next, let's take a look at the smtp mail class and the solution to the problem. When you are still struggling with the built-in php ma... smtp email sending is much more practical than php mail functions. The mail function does not allo
A POP3 and SMTP command from Baidu Library
POP3 commands
What is POP3?POP3 (Post Office Protocol 3) is the 3rd version of the Post Office Protocol. It specifies how to connect a personal computer to an Internet Mail Server and download an email Protocol. It is the first offline protocol standard for Internet email. POP3 allows you to store emails on the server to a local host (your computer, delete the emails stored on the mail server, while the POP3
Document directory
Use telnet to manually send and receive SMTP/pop mails
Use telnet to manually send and receive SMTP/pop mails
Note: manual input is represented in a blue font, and # is followed by a comment, which cannot be entered.
========= Calculate the base64 encoded username and password first, Used for authentication login ==========[Crazywill @ localhost crazywill] $ Perl-mmime: base64-e 'print
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.