Title: Problem while sending Test Email
Last modified: December 17, 2024

---

# Problem while sending Test Email

 *  Resolved [jesus11](https://wordpress.org/support/users/jesus11/)
 * (@jesus11)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/problem-while-sending-test-email-3/)
 * Hello, I have recently talked to my hosting provider which they then suggested
   I reach out here due to this issue being unresolved. This is a more recent issue
   as this was not a problem before.
 * Here is the description I get while trying to send a test email:
 * An issue was detected.
 * This means your test email was unable to be sent.
 * Typically this error is returned for one of the following reasons:
    - Plugin settings are incorrect (wrong SMTP settings, invalid Mailer configuration,
      etc).
    - Your web server is blocking the connection.
    - Your host is rejecting the connection.
 * Recommended next steps:
    1. Triple-check the plugin settings and consider reconfiguring to make sure everything
       is correct. Maybe there was an issue with copy&pasting.
    2. Contact your web hosting provider and ask them to verify your server can make
       outside connections. Additionally, ask them if a firewall or security policy
       may be preventing the connection – many shared hosts block certain ports.
       **
       Note: this is the most common cause of this issue.**
    3. Try using a different mailer.
 * Need support?
 * WP Mail SMTP is a free plugin, and the team behind WPForms maintains it to give
   back to the WordPress community.
 * To access our world class support, please [upgrade to WP Mail SMTP Pro](https://wpmailsmtp.com/lite-upgrade/?utm_source=WordPress&utm_medium=plugin-settings&utm_campaign=liteplugin&utm_locale=en_us&utm_content=email-test-fail).
   Along with getting expert support, you will also get Notification controls, Email
   Logging, and integrations for Amazon SES, Office 365, and Outlook.com.
 * Additionally, you can take advantage of our White Glove Setup. Sit back and relax
   while we handle everything for you! If you simply don’t have time or maybe you
   feel a bit in over your head – we got you covered.
 * As a valued WP Mail SMTP user, you will get $50 off regular pricing, automatically
   applied at checkout!
 * Alternatively, we also offer [limited support](https://wordpress.org/support/topic/wp-mail-smtp-support-policy/)
   on the WordPress.org support forums. You can [create a support thread](https://wordpress.org/support/plugin/wp-mail-smtp/)
   there, but please understand that free support is not guaranteed and is limited
   to simple issues. If you have an urgent or complex issue, then please consider
   [upgrading to WP Mail SMTP Pro](https://wpmailsmtp.com/lite-upgrade/?utm_source=WordPress&utm_medium=plugin-settings&utm_campaign=liteplugin&utm_locale=en_us&utm_content=email-test-fail)
   to access our priority support ticket system.
 * _Please copy the error log message below into the support ticket._
 * HERE IS THE ERROR LOG:
 * **Versions:**
   **WordPress:** 6.7.1**WordPress MS:** No**PHP:** 8.3.6**WP Mail
   SMTP:** 4.3.0
 * **Params:**
   **Mailer:** gmail**Constants:** No**Client ID/Secret:** Yes**Auth
   Code:** Yes**Access Token:** Yes
 * **Server:**
   **OpenSSL:** OpenSSL 1.1.1w 11 Sep 2023**PHP.allow_url_fopen:** Yes**
   PHP.stream_socket_client():** Yes**PHP.fsockopen():** Yes**PHP.curl_version():**
   8.7.1**Apache.mod_security:** No
 * **Debug:**
   Email Source: WP Mail SMTP Mailer: Google / Gmail { “error”: “invalid_grant”,“
   error_description”: “Bad Request” } Please re-grant Google app permissions! Go
   to WP Mail SMTP plugin settings page. Click the “Remove OAuth Connection” button.
   Then click the “Allow plugin to send emails using your Google account” button
   and re-enable access.

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

 *  Plugin Support [Darshana](https://wordpress.org/support/users/darshanaw/)
 * (@darshanaw)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/problem-while-sending-test-email-3/#post-18207497)
 * Hi [@jesus11](https://wordpress.org/support/users/jesus11/),
 * Thanks for reaching out! The OAuth token in Gmail will reset for any event breaking
   the connection, including but not limited to:
    1.  Changing Google password
    2.  Enabling or disabling 2FA
    3.  Google account access reset
    4.  Activation of Google advanced protection program
    5.  Revocation of the app to profile
    6.  App OAuth permission revoked by Google
    7.  App moved from public mode to private/internal mode by Google (or by a user
        whose user domain is not in the allowed org domain zone)
    8.  App verification failure on reaudit
    9.  Suspension of Google account
    10. User requested linked account unlinking
    11. The user does not use the app for 6 months (automatically expires refresh token)
    12. The user adds/removes sensitive or needs review scopes to the app but does 
        not complete the app review process
    13. If the user is at the maximum limit for OAuth tokens to a Google profile (50)
        or for the service (25 for example in analytics), activation of a new refresh
        key will also automatically revoke the earliest key
 * To resolve the issue, please head over to the **WP Mail SMTP > Settings** page,
   and click on the “**Remove Connection**” button. Then click on the “**Allow plugin
   to send emails using your Google account**” button to re-enable access.
 * I hope this helps. Thanks!
 *  Thread Starter [jesus11](https://wordpress.org/support/users/jesus11/)
 * (@jesus11)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/problem-while-sending-test-email-3/#post-18209548)
 * Yes! Thank you. That actually ended up working.

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

The topic ‘Problem while sending Test 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [jesus11](https://wordpress.org/support/users/jesus11/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/problem-while-sending-test-email-3/#post-18209548)
 * Status: resolved