PHPMailer's official website: http://phpmailer.worxware.com/
PHPMailer latest class library download address: [Click to download]
PHPMailer GitHub download address: https://Github.com/ Synchro/PHPMailer, this page also provides usage examples, but it is not comprehensive.
Reference http://my.oschina.net/BearCatYN/blog/299192
Only selected the directory setting part
Reference http://jingyan.baidu.com/article/0bc808fc6498cd1bd585b95c.html The article
referred to the code inside and the php.in configuration
Even after completing the above steps, the error SMTP class cannot be found will still be reported. Just introduce it at the beginning of class.phpmailer.php
require _once("class.smtp.php");
That's it.
smtp server: smtp.163.com
Server username: xxxxx@163.com
Server password: xxxxxx
The following settings can debug SMTP error messages
$mail->SMTPDebug = 3; // Turn off SMTP debugging function
/// 1 = errors and messages
// 2 = messages only
$mail->ErrorInfo; // Error information can be obtained
The above introduces the new test thinkphp32 integrates PHPMailer to send emails, including require, Git, and github content. I hope it will be helpful to friends who are interested in PHP tutorials.