This article mainly introduces thinkphp's method of sending and receiving emails in 163 and other mailboxes. it has been tested on 163 NetEase mailbox. it took a long time to explore it step by step, finally, the test was successful on 163 NetEase
Php sends emails in multiple forms (the phpmailer class in the mailqmail mail system ). 1. there is nothing to say about using the mail () function, that is, using the system's built-in smtp system for sending, generally using sendmail for sending.
Php Chinese network (www.php.cn) provides the most comprehensive basic tutorial on programming technology, introducing HTML, CSS, Javascript, Python, Java, Ruby, C, PHP, basic knowledge of MySQL and other programming languages. At the same time,
1. Use the mail () function
There is nothing to mention, that is, sending via the system's built-in smtp system, generally using sendmail. This depends on different systems. User reference manual.
2. MPS queue format
The test was successful
PHP uses PEAR_SMTP to send mail, pear_smtp send mail
PHP comes with the mail function compared to the egg pain, under win configured SendMail or unable to send mail. A third-party pear/mail can be used to send servers directly through SMTP
Php mail, php mail. Php mail class: php Mail is used to write a class for sending mails using phpsocket, which is easy to use. When php programs are used to send mails, in the 163 server, you can use the RCPT command to check php mail and php mail.
The emphasis is one_mail function. Use the Mail_mimedecode class to extract headers and message bodies from messages.
Copy Code code as follows:
Header ("content-type:text/html; Charset=utf-8 ");
/*
* Record kid words and insert INTO
PHP implements the SMTP mail sending class that supports SSL connections. PHP: SMTP mail sending class that supports SSL connections this article mainly introduces PHP implementation of SMTP mail sending class that supports SSL connections, the
Phpmailer Introduction Step One: Make QQ mailbox can send mail step two: Enable PHP to use QQ mailbox to send mail step three: Write the sending Code thinkphp use phpmailer send mail, This article will be through the QQ mailbox as an example to
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.