Reprint Please specify source: http://blog.csdn.net/qq_26525215This article is from the "university trip _ Remember the blog"
Introduction to e-mail protocol:Mail server, according to the type of service provided, can be divided into the server
PHP does not provide a ready-made smtp function, but provides a mail () function that is not very flexible. this function requires support on server configuration and does not support smtp verification, it is not recommended because it cannot work
A recent project needs to use SMTP to send mail, the previous library class does not exist, do not like to install pear or use Pear's net/smtp class, it is too complicated. The core is extracted directly from the Discuz and slightly modified.
From
A recent project requires SMTP to send mail, the previous library class does not exist, and does not like to install pear or use the Pear net/smtp class, feeling too complex. Directly from the Discuz to extract the core slightly modified under.
From
smtp| Send mail
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
because PHP does not provide ready-made SMTP functions, but provides a less flexible mail () function, this function requires server configuration support, and does not support SMTP authentication, in many cases does not work properly, Therefore, it
Use PHP send mail via SMTP newbie guide http://tech.163.com 09:40:32 Source: IT computer tutorial network comments 0 Forum
PHP does not provide a ready-made SMTP function, but provides a mail () function that is not very flexible. This function
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.
SMTP protocol Principle
SMTP-Simple Mail Transfer Protocol) is a Protocol that defines Mail transmission. It is based on the TCP application layer Protocol, defined by RFC0821. The commands specified by the SMPT protocol are in plaintext. To
?
* Name: send email with socket* Description: This class implements the direct use of the SMTP server that needs to be authenticated to send mail directly, reference article "send email with socket" Author: Limodou* This article is relatively early,
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.