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

User avatar
axew3
w3all User
w3all User
Posts: 2689
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

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

Post 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.