Title: SSL verification error
Last modified: March 31, 2017

---

# SSL verification error

 *  Resolved [Jake Whiteley](https://wordpress.org/support/users/twentyzerotwo/)
 * (@twentyzerotwo)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/ssl-verification-error/)
 * Hi,
 * So when I use your plugin it never authenticates correctly.
 * I check the box to bypass ssl verification or I get the standard error.
 * I had a tinker with your plugin, and I found that by removing where you add the
   ssl options via `$phpmailer->SMTPOptions`, and adding it in again directly after
   the `$phpmailer->isSMTP();` call as
 * 
    $phpmailer->smtpConnect( array( “ssl” => array( “verify_peer” => false, “verify_peer_name”
   => false, “allow_self_signed” => true ) ) );
 * It then works.
 * Any idea as to why, or has anyone else had this issue?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Jake Whiteley](https://wordpress.org/support/users/twentyzerotwo/)
 * (@twentyzerotwo)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/ssl-verification-error/#post-8979233)
 * Additional info:
 * This was on a php7 server, when connecting to office365.com via smtp.
 * All the login details were correct, but until I changed the `SMTPOptions` call
   to `smtpConnect` it would state the authentication was incorrect.
 *  Thread Starter [Jake Whiteley](https://wordpress.org/support/users/twentyzerotwo/)
 * (@twentyzerotwo)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/ssl-verification-error/#post-9013997)
 * If this doesn’t break any other SMTP setups, could this be rolled out into the
   plugin?
 *  Thread Starter [Jake Whiteley](https://wordpress.org/support/users/twentyzerotwo/)
 * (@twentyzerotwo)
 * [9 years ago](https://wordpress.org/support/topic/ssl-verification-error/#post-9183974)
 * Hey;
 * Any progress on this?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘SSL verification error’ is closed to new replies.

 * ![](https://ps.w.org/smtp-mailer/assets/icon-128x128.png?rev=1312656)
 * [SMTP Mailer](https://wordpress.org/plugins/smtp-mailer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smtp-mailer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smtp-mailer/)
 * [Active Topics](https://wordpress.org/support/plugin/smtp-mailer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smtp-mailer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smtp-mailer/reviews/)

## Tags

 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * 3 replies
 * 1 participant
 * Last reply from: [Jake Whiteley](https://wordpress.org/support/users/twentyzerotwo/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/ssl-verification-error/#post-9183974)
 * Status: resolved