Home >Backend Development >PHP Tutorial >windows install clean up PHP mail Solution to the failure of sending mail through Windows SMTP
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 codeof this line in WordPress’s class-phpmailer.php. The code is as follows:
$from[0][1] = $this->FromName;
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.