Title: SMTP ERROR: Failed to connect to server: (0)SMTP connect() failed. https://gith
Last modified: November 26, 2018

---

# SMTP ERROR: Failed to connect to server: (0)SMTP connect() failed. https://gith

 *  [aliasgarchaderwala](https://wordpress.org/support/users/aliasgarchaderwala/)
 * (@aliasgarchaderwala)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/smtp-error-failed-to-connect-to-server-0smtp-connect-failed-https-gith/)
 * SMTP ERROR: Failed to connect to server: (0)SMTP connect() failed. [https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting)
 * i am doing it on local server xamp

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

 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/smtp-error-failed-to-connect-to-server-0smtp-connect-failed-https-gith/#post-10918935)
 * Hi, did you follow the troubleshooting steps illustrated in the above link? However
   some of the troubleshooting steps might work in a local install.
 * Regards
 *  [krohit](https://wordpress.org/support/users/krohit/)
 * (@krohit)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/smtp-error-failed-to-connect-to-server-0smtp-connect-failed-https-gith/#post-11019893)
 * Unable to resolve the error SMTP ERROR: Failed to connect to server: (0)SMTP 
   connect() failed. [https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting)
 * I’m on a live server trying to connect to gmail with following settings:
 * SMTP Host smtp.gmail.com
 * Type of Encryption SSL/TLS
 * SMTP Port 587
 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/smtp-error-failed-to-connect-to-server-0smtp-connect-failed-https-gith/#post-11020308)
 * [@krohit](https://wordpress.org/support/users/krohit/), did you try the following
   troubleshooting steps?
 * [https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting)

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

The topic ‘SMTP ERROR: Failed to connect to server: (0)SMTP connect() failed. https://
gith’ is closed to new replies.

 * ![](https://ps.w.org/easy-wp-smtp/assets/icon.svg?rev=3158017)
 * [Easy WP SMTP – WordPress SMTP and Email Logs: Gmail, Office 365, Outlook, Custom SMTP, and more](https://wordpress.org/plugins/easy-wp-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-wp-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-wp-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-wp-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-wp-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-wp-smtp/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/smtp-error-failed-to-connect-to-server-0smtp-connect-failed-https-gith/#post-11020308)
 * Status: not resolved