Home > Backend Development > PHP Tutorial > PHP mail Solution to failure to send mail through Windows SMTP_PHP tutorial

PHP mail Solution to failure to send mail through Windows SMTP_PHP tutorial

WBOY
Release: 2016-07-21 15:46:49
Original
1077 people have browsed it

The reason must be in the php email sending class of WordPress. Easily Google the reason: It turns out that the SMTP service of Windows does not support the email format Name, and must be written directly as address@domain.com. So I copied this line

in WordPress’s class-phpmailer.php to the following code:
$from[0] [1] = $this->FromName;


Comment out and it will be OK.

http://www.bkjia.com/PHPjc/320089.html

truehttp: //www.bkjia.com/PHPjc/320089.htmlTechArticleThe reason must be in the php email sending class of WordPress. Easily Google the reason: It turns out that the Windows SMTP service does not support email formats such as Nameaddress@domain.com, and must be written directly as addr...
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