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

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: Win OS Apache server, Php 5.6..: no email sent on WP 4.6

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

by axew3 » Tue Aug 30, 2016 2:05 pm

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.

Top