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.
Refer to http://my.oschina.net/BearCatYN/blog/299192’s blog
Only the part of the directory settings is selected
Refer to the article http://jingyan.baidu.com/article/0bc808fc6498cd1bd585b95c.html
Refer to the code inside and the php.in configuration
Even after completing the above steps, an error will still be reported that the SMTP class cannot be found. 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; // You can get error information