Home > Backend Development > PHP Tutorial > windows install clean up PHP mail Solution to the failure of sending mail through Windows SMTP

windows install clean up PHP mail Solution to the failure of sending mail through Windows SMTP

WBOY
Release: 2016-07-29 08:39:58
Original
1057 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 copy the code

of this line in WordPress’s class-phpmailer.php. The code is as follows:


$from[0][1] = $this->FromName;


Comment it out and it’s OK .

The above introduces the solution to the failure of windows install clean up PHP mail to send mail through Windows SMTP, including the content of windows install clean up. I hope it will be helpful to friends who are interested in PHP tutorials.

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