Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rverdons

    (@rverdons)

    Hi

    I tried another theme (a default WP theme): doesn’t solve the issue.
    The mu-plugins folder is empty.

    I just disabled that piece of phpmailer code in my wp-config.php: That makes the issue go away!

    So for me this issue is solved now. I’ll work with my hosting provider to see if there can be any side effects of disabling the code. Thanks for your help!

    Robert

    Thread Starter rverdons

    (@rverdons)

    Hi Gregor,
    Thanks for your fast response!

    I also update all other plugins and my theme. I am not sure about the core version: I just updated Worpress. Is the core something separate?

    I did the check you suggested: disable all plugins except WP Mail SMTP: still the same error.

    I found a piece of code in my wp-config.php related to phpmailer. It is placed there by my hosting company (Transip). To me it doesn’t seem to replace the PHPMailer class, it just changes a setting, right?

    /** TransIP fix: sendmail does not support flags. This fix is needed in order to make mailing work. */
    global $phpmailer;
    if ((!is_object( $phpmailer ) || !is_a( $phpmailer, 'PHPMailer' )) &&
         file_exists(ABSPATH . '/wp-includes/class-phpmailer.php') &&
         file_exists(ABSPATH . '/wp-includes/class-smtp.php')) {
    	require_once ABSPATH . '/wp-includes/class-phpmailer.php';
    	require_once ABSPATH . '/wp-includes/class-smtp.php';
    	$phpmailer = new PHPMailer( true );
    }
    $phpmailer->UseSendmailOptions = false;
    
Viewing 2 replies - 1 through 2 (of 2 total)