• Hello.

    It seems something went wrong with the plugin after upgrading WordPress to 4.6. Now using a mail_utf8 function with the installed plugin gives me an error with ‘From’ field. Looks like something was changed in the pluggable.php:

    text/x-generic error_log_17.08.2016 ( ASCII text )

    [17-Aug-2016 07:01:03 UTC] PHP Fatal error: Uncaught exception ‘phpmailerException’ with message ‘Invalid address: wordpress@’ in /var/www/u3260619/public_html/temptraining.ru/wp-includes/class-phpmailer.php:946
    Stack trace:
    #0 /var/www/u3260619/public_html/temptraining.ru/wp-includes/pluggable.php(352): PHPMailer->setFrom(‘wordpress@’, ‘WordPress’)
    #1 /var/www/u3260619/public_html/temptraining.ru/wp-content/themes/spacious/functions.php(170): wp_mail(‘nikonov.alex@gm…’, ‘=?UTF-8?B?0J3Qs…’, ‘???????????????…’)
    #2 /var/www/u3260619/cron/notification.php(64): mail_utf8(‘nikonov.alex@gm…’, ‘???????????????…’, ‘???????????????…’)
    #3 {main}
    thrown in /var/www/u3260619/public_html/temptraining.ru/wp-includes/class-phpmailer.php on line 946

    https://www.ads-software.com/plugins/easy-wp-smtp/

Viewing 6 replies - 1 through 6 (of 6 total)
  • FWIW I have the same error on *some* sites and I am not using easy-wp-smtp. I’ve seen some reports it may have something to do with using nginx, which I do, but not sure if that is the case for you.

    Thread Starter evilbruce

    (@evilbruce)

    Yes, probably. I have changed the bad line in pluggable.php where I specified literally an email ‘From’ and now everything works. For some reason . $sitename doesn’t work in 4.6 there.

    Hi @evilbruce, could you please explain a bit more where exactly and to what did you change for this to work. I did find pluggable.php and I found:
    // From email and name
    // If we don’t have a name from the input headers
    if ( !isset( $from_name ) )
    $from_name = ‘WordPress’;

    /* If we don’t have an email from the input headers default to wordpress@$sitename
    * Some hosts will block outgoing mail from this address if it doesn’t exist but
    * there’s no easy alternative. Defaulting to admin_email might appear to be another
    * option but some hosts may refuse to relay mail from an unknown domain. See
    * https://core.trac.www.ads-software.com/ticket/5007.
    */

    if ( !isset( $from_email ) ) {
    // Get the site domain and get rid of www.
    $sitename = strtolower( $_SERVER[‘SERVER_NAME’] );
    if ( substr( $sitename, 0, 4 ) == ‘www.’ ) {
    $sitename = substr( $sitename, 4 );
    }

    $from_email = ‘wordpress@’ . $sitename;
    }

    what did you change?

    I am sorry i am new to this.

    thanks in advance.

    Thread Starter evilbruce

    (@evilbruce)

    Quick fix is:

    comment the line $from_email = ‘wordpress@’ . $sitename;
    and replace it with $from_email = ‘[email protected]’;

    Hello!

    I’m also having trouble with this plugin. Right now its not working and i have to use another plugin (WP Mail SMTP) because of this. K thx bai!

    I have been using this plugin for many years, but the upgrade to WP 4.6 seems to have broken it. First of all, all my settings were wiped out. After re-entering everything in the settings menu, I still cannot get it to work. I keep getting the SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting message when sending a test. I have doublechecked all my settings with my e-mail host, and everything is OK. Will look into using another SMTP plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Incompatibility with 4/6’ is closed to new replies.