Title: Error send gmail mail
Last modified: February 1, 2017

---

# Error send gmail mail

 *  [ranaves](https://wordpress.org/support/users/ranaves/)
 * (@ranaves)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-send-gmail-mail/)
 * I updated the plugin to version 1.2.3 and now I can’t send more email through
   gmail. I received this error:
 * SMTP connect() failed. [https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting)
 * What’s happen? Please, help me.
 * My settings:
 * SMTP HOST: smtp.gmail.com
    Type of Encription: SSL SMTP Port: 465 SMTP Authentication:
   Yes

Viewing 1 replies (of 1 total)

 *  [scottdky](https://wordpress.org/support/users/scottdky/)
 * (@scottdky)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-send-gmail-mail/#post-8924381)
 * If it is timing out, the problem is due to your host not supporting ipv6 addresses.
   The plugin needs to make a special case for this problem. The specific changes
   to the code (in swpsmtp_test_mail & swpsmtp_init_smtp) are these two lines added
   after `$mail->Host` has been set:
 *     ```
       $mail->Host = gethostbyname($mail->Host); // converts name to ipv4 address
       $mail->SMTPOptions = array('ssl' => array('verify_peer_name' => false));
       ```
   
 * The first line forces the host to be an ipv4 address. The second line allows 
   the use if just an ip address instead of a domain name for authentication.
 * If you need help in resolving this issue, please contact me at [WPThunder.com](http://wpthunder.com).
   I specialize in WordPress fixes.

Viewing 1 replies (of 1 total)

The topic ‘Error send gmail mail’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [scottdky](https://wordpress.org/support/users/scottdky/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/error-send-gmail-mail/#post-8924381)
 * Status: not resolved