• Hi
    we had problem with sending email and we found a solution that maybe can help other users.
    We could not send email until we added the following phpmailer settings to the wp_mail_smtp class.

    $phpmailer->smtpConnect(
    array(
    “ssl” => array(
    “verify_peer” => false,
    “verify_peer_name” => false,
    “allow_self_signed” => true
    )
    )
    );

    The problem was with our godaddy certificate, which looks like the plugin has problem to recognize. In a future version it could help to let the user set this settings?
    What do you think?

    Vittorio

Viewing 2 replies - 1 through 2 (of 2 total)
  • We are having similar issues. This is a huge problem at the moment. We cannot send email any longer. Going to have to downgrade PHP to 5.5 until we have a resolution.

    “Stream wrappers now verify peer certificates and host names by default when using SSL/TLS” – http://php.net/manual/en/migration56.openssl.php

    It would be nice to be able to disable this from the admin somehow.

    There is a filter to set the options!

    
        add_filter('wp_mail_smtp_custom_options', 'my_wp_mail_smtp_custom_options');
        public function my_wp_mail_smtp_custom_options($phpmailer) {
          $phpmailer->SMTPOptions = array(
            'ssl' => array(
              'verify_peer' => false,
              'verify_peer_name' => false
            )
          );
          return $phpmailer;
        }
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Configuration advice’ is closed to new replies.