Title: Problem with Send email
Last modified: April 4, 2024

---

# Problem with Send email

 *  Resolved [mktbydas](https://wordpress.org/support/users/mktbydas/)
 * (@mktbydas)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/problem-with-send-email/)
 * I set up the email on a test website and it worked correctly.
   I passed the data
   I used to my final website and it gives an error when I send a test email. The
   data is the same, I just generated a new password.The email I’m using is from
   gmail.
 * I’ve reviewed the configuration and it’s exactly the same.
 * > [View post on imgur.com](https://imgur.com/fGMlDfG)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-send-email%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [mktbydas](https://wordpress.org/support/users/mktbydas/)
 * (@mktbydas)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/problem-with-send-email/#post-17551230)
 * This is the error.
 *     ```wp-block-code
       Versions:WordPress: 6.5WordPress MS: NoPHP: 7.4.33WP Mail SMTP: 4.0.1
   
       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: 587SMTPSecure:tlsSMTPAutoTLS:bool(true)SMTPAuth:bool(true)
   
       Server:OpenSSL: OpenSSL 1.1.1w 11 Sep 2023Apache.mod_security: No
   
       Debug:Email Source: WP Mail 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:2024-04-04 11:36:25 Connection: opening to smtp.gmail.com:587, timeout=300, options=array()2024-04-04 11:36:26 Connection failed. Error #2: stream_socket_client(): unable to connect to smtp.gmail.com:587 (Network is unreachable) [/home/spausapt/public_html/wp-includes/PHPMailer/SMTP.php line 409]2024-04-04 11:36:26 SMTP ERROR: Failed to connect to server: Network is unreachable (101)SMTP Error: Could not connect to SMTP host. Failed to connect to server
       ```
   
    -  This reply was modified 2 years, 2 months ago by [mktbydas](https://wordpress.org/support/users/mktbydas/).
 *  Plugin Support [Darshana](https://wordpress.org/support/users/darshanaw/)
 * (@darshanaw)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/problem-with-send-email/#post-17555727)
 * Hi [@mktbydas](https://wordpress.org/support/users/mktbydas/),
 * Thanks for reaching out! It appears that your server is blocking SMTP connection
   requests.
 * Instead of the **Other SMTP** mailer option, please follow our [**Google** mailer](https://wpmailsmtp.com/docs/how-to-set-up-the-gmail-mailer-in-wp-mail-smtp/)
   guide and configure the WP Mail SMTP plugin using your Gmail email.
 * Google Mailer utilizes an API-based connection method, which is known for its
   enhanced security and reliability.
 * I hope this helps. Thanks!
 *  Thread Starter [mktbydas](https://wordpress.org/support/users/mktbydas/)
 * (@mktbydas)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/problem-with-send-email/#post-17558957)
 * Thank you for your reply.
 * It could be a problem with the server where my website is hosted. In DEV mode
   it works fine and with any email. The “Live” website doesn’t have any “Other 
   Email” integration.
 *  Plugin Support [Darshana](https://wordpress.org/support/users/darshanaw/)
 * (@darshanaw)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/problem-with-send-email/#post-17566816)
 * Hi [@mktbydas](https://wordpress.org/support/users/mktbydas/),
 * Yes, it’s a server-related issue that you need to report to your server support.
 * In the meantime, please configure the Google mailer as mentioned above.
 * I hope this helps. Thanks!
 *  Thread Starter [mktbydas](https://wordpress.org/support/users/mktbydas/)
 * (@mktbydas)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/problem-with-send-email/#post-17613292)
 * Thanks for your help, the problem was with the website’s server.
   I’ve fixed the
   problem.
 * Thank you for your help.

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

The topic ‘Problem with Send email’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [mktbydas](https://wordpress.org/support/users/mktbydas/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/problem-with-send-email/#post-17613292)
 * Status: resolved