Home > Backend Development > PHP Tutorial > New test thinkphp3.2 integrates PHPMailer to send emails, thinkphp3.2 integrates dwz_PHP tutorial

New test thinkphp3.2 integrates PHPMailer to send emails, thinkphp3.2 integrates dwz_PHP tutorial

WBOY
Release: 2016-07-12 09:04:01
Original
919 people have browsed it

New test thinkphp3.2 integrates PHPMailer to send emails, thinkphp3.2 integrates dwz

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

New test thinkphp3.2 integrates PHPMailer to send emails, thinkphp3.2 integrates dwz_PHP tutorial

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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1075863.htmlTechArticleNew test thinkphp3.2 integrates PHPMailer to send emails, thinkphp3.2 integrates dwz PHPMailer’s official website: http:// phpmailer.worxware.com/ PHPMailer latest class library download address: [Click to download...
Related labels:
source:php.cn
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