Discover php send email without smtp server, include the articles, news, trends, analysis and practical advice about php send email without smtp server on alibabacloud.com
: This article mainly introduces two methods for sending mails by php using smtp. For more information about php tutorials, see. Original article: http://www.jbxue.com/php/25502.html
This article introduces two methods for sending mails in php:
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":
Original: http://www.jbxue.com/php/25502.html
This article introduces two methods of sending mail in PHP, using the PHP built-in mail () function to send mail, sending mail using the message class encapsulating the SMTP protocol, and recommending
PHP implements the mail sending instance code based on the SMTP protocol and smtp mail sending
SMTP protocol
When we use a third-party library or tool class of PHP to send emails, do you have any questions:
Why can't we use someone else's library
Sending mail via socket means sending the above commands to the mail server through the client, so as to realize the SMTP protocol to send mail. PHP uses the socket method to send the mail code as follows :/***
Sending mail via socket means sending
Use Socket to send emails (using the SMTP server to be verified)
* Name: use Socket to send an email* Description: This class allows you to directly send emails using the SMTP server to be verified. for details, see limodou, author of "sending
* Name: Use SOCKET to send an email* Description: This class allows you to directly send emails using the SMTP server to be verified. For more information, seeArticleBy sending an email via socket: limodou* This article is earlier. It uses the SMTP
* Name: Use Socket to send an email* Description: This class allows you to directly send emails using the SMTP server to be verified. For details, see limodou, author of "sending emails with Socket ".* This article is earlier. It uses the SMTP
First, use the PHP built-in mail () functionAfter reading the manual, I began to write the code directly, as follows$to = "[email protected]"; //Recipient $subject = "Test"; //Theme $message = "This is a test mail!"; //Body Mail
Php uses phpmailer to send mails and phpmailer to send mails
I am a newbie. I want to send the verification code via email, so I can find and collect the verification code.
This is the 163 mailbox because the account entered in the enterprise
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.