Page 1 of 1

Win OS Apache server, Php 5.6..: no email sent on WP 4.6

Posted: Tue Aug 30, 2016 2:05 pm
by axew3
This is marked as resolved on 4.6.1.
On WordPress 4.6 i've resolved this bug with this temporary fix:
open file wp-includes/pluggable.php
search for line:

Code: Select all

$phpmailer->setFrom( $from_email, $from_name );
replace with:

Code: Select all

if(stristr(PHP_OS, 'win') === FALSE) {
$phpmailer->setFrom( $from_email, $from_name );
} else {
$phpmailer->setFrom( $from_email, $from_name, false );
}
This is my temp fix on pluggable.php to get back working WP 4.6 email - on Win OS test server with Php 5.6.. and Apache 2.4, until WordPress 4.6.1 will be out.