: This article mainly introduces how to integrate PHPMailer to send emails to thinkphp32. For more information about PHP tutorials, see. PHPMailer official website: http://phpmailer.worxware.com/
PHPMailer latest class library: [click to download]
PHPMailerGitHub: https ://GitHub.com/synchro/phpmailer. this page also contains use cases.
Refer to http://my.oschina.net/BearCatYN/blog/299192 blog
Only the directory settings are selected.
Articles for reference http://jingyan.baidu.com/article/0bc808fc6498cd1bd585b95c.html
Refer to the code and php. in configuration.
Even if the above steps are completed, the SMTP class cannot be found, as long as you start introducing it in class. phpmailer. php
Require_ Once ("class. smtp. php ");
You can.
Smtp server: smtp.163.com
Server User: xxxxx@163.com
Server password: xxxxxx
Send email "/>
The following settings allow you to debug SMTP error messages.
$ Mail-> SMTPDebug = 3; // disable SMTP debugging.
// 1 = errors and messages
// 2 = messages only
$ Mail-> ErrorInfo; // you can obtain error information.
The above introduces the new thinkphp32 integration PHPMailer to send emails, including The require, Git, github content, hope to be helpful to friends interested in PHP tutorials.