Title: SMTP error using Google Workspace
Last modified: December 4, 2023

---

# SMTP error using Google Workspace

 *  Resolved [jestercarl14](https://wordpress.org/support/users/jestercarl14/)
 * (@jestercarl14)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/smtp-error-using-google-workspace/)
 * Hi,
 * I tried using a Google Workspace account to set up an SMTP server, but I could
   not get it to work. I have already used the app-generated password and enabled
   the iMAP/POP settings in my Google account, but nothing is working.
 * My reference is the below link
 * [https://easywpsmtp.com/docs/setting-up-the-other-smtp-mailer/#generating-app-passwords](https://easywpsmtp.com/docs/setting-up-the-other-smtp-mailer/#generating-app-passwords)
 * Below is my error. Hope you can help me on this.
 *     ```wp-block-code
       Versions:WordPress: 6.2.2WordPress MS: NoPHP: 7.4.33Easy WP SMTP: 2.1.2
   
       Params:Mailer: smtpConstants: NoErrorInfo: SMTP Error: Could not connect to SMTP host. Failed to connect to serverSMTP server error: Failed to connect to server SMTP code: 101 Additional SMTP info: Network is unreachableHost: smtp.gmail.comPort: 465SMTPSecure:sslSMTPAutoTLS:bool(true)SMTPAuth:bool(true)
   
       Server:OpenSSL: OpenSSL 1.1.1w 11 Sep 2023
   
       Debug:Email Source: Easy WP SMTP Mailer: Other SMTP SMTP Error: Could not connect to SMTP host. Failed to connect to serverSMTP server error: Failed to connect to server SMTP code: 101 Additional SMTP info: Network is unreachable
   
       SMTP Debug:2023-12-04 06:43:14 Connection: opening to ssl://smtp.gmail.com:465, timeout=30, options=array()2023-12-04 06:43:15 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Network is unreachable) [/home/backupsiteimanil/public_html/fseconstruct/wp-includes/PHPMailer/SMTP.php line 389]2023-12-04 06:43:15 SMTP ERROR: Failed to connect to server: Network is unreachable (101)SMTP Error: Could not connect to SMTP host. Failed to connect to server
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsmtp-error-using-google-workspace%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [David](https://wordpress.org/support/users/dpinson/)
 * (@dpinson)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/smtp-error-using-google-workspace/#post-17258145)
 * Hi there [@jestercarl14](https://wordpress.org/support/users/jestercarl14/),
 * It looks like there is a problem reaching Google’s SMTP server:
 *     ```wp-block-code
       Additional SMTP info: Network is unreachable
       ```
   
 * Reach out to your web host about this. They may be blocking outgoing SMTP connections
   from your hosting account. If that’s the case, it means your site won’t be able
   to make connections to SMTP servers. They may be able to whitelist the connection
   or make an exception for your account, but if you reach out to them, they should
   be able to let you know.
 * I hope that helps! Have a great day!

Viewing 1 replies (of 1 total)

The topic ‘SMTP error using Google Workspace’ 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: [David](https://wordpress.org/support/users/dpinson/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/smtp-error-using-google-workspace/#post-17258145)
 * Status: resolved