Home > Backend Development > PHP Tutorial > New test thinkphp32 integrates PHPMailer to send emails

New test thinkphp32 integrates PHPMailer to send emails

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-29 09:11:18
Original
854 people have browsed it

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

New test thinkphp32 integrates PHPMailer <img src=

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.

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template