• Resolved johnboy85

    (@johnboy85)


    I’ve been using your plugin for the last 8 years with no issues until now. For some reason the plugin stopped working back in June 2025. I checked my email logs and the last successful email was sent on June 26, 2025 2:36 pm. Every email from June 28, 2025 10:30 pm to today has failed. What happened between June 26 2025 and June 28 2025? Was there a plugin update or something that would be causing this issue?

    If I send a test email I get the following message, “Bad Request(invalid_grant)”

    I read the following post from 2020:
    https://postmansmtp.com/bad-requestinvalid_grant/

    The plugin settings are different now, so I’m not able to find the “Grant OAuth 2.0 Permission” setting any longer.

    • This topic was modified 2 months, 2 weeks ago by johnboy85. Reason: Fixed typing issue
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support M Aqib Khan

    (@aqibkhan9)

    Hello @johnboy85 ,

    Thank you for reaching out to our Support team. We’re truly sorry to hear that you’ve encountered this issue.

    Kindly share your Diagnostic test report with us. It will allow us to understand your setup & assist you effectively.

    Thread Starter johnboy85

    (@johnboy85)

    I have censored some of the URL names since this forum is public.

    Mailer: postsmtp

    HostName: ************.com

    cURL Version: 8.14.1

    OpenSSL Version: OpenSSL/1.1.1w

    OS: Linux rs4-or.serverhostgroup.com 4.18.0-553.40.1.lve.el8.x86_64 #1 SMP Wed Feb 12 18:54:57 UTC 2025 x86_64

    PHP: Linux 8.2.29 C.UTF-8

    PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=Yes, allow_url_fopen=Yes, mcrypt=No, zlib_encode=Yes

    WordPress: 6.9 en_US UTF-8

    WordPress Theme: AirSupply-child

    WordPress Plugins: Post SMTP, Contact Form 7, Contact Form Entries, Essential Grid, EWWW Image Optimizer, Favicon by RealFaviconGenerator, Font Awesome, Heartbeat Control by WP Rocket, WP Armour - Honeypot Anti Spam, WPBakery Page Builder, LiteSpeed Cache, MC4WP: Mailchimp for WordPress, QuickCal, Slider Revolution, Rank Math SEO PRO, Rank Math SEO, Simple History, Temporary Login Without Password, ThemeREX Updater, ThemeREX Utilities, Under Construction, YellowPencil Pro, Wordfence Security, WP Armour Extended - Honeypot Anti Spam

    WordPress wp_mail Owner: /home/*********/*************.com/wp-content/plugins/post-smtp/Postman/PostmanWpMailBinder.php

    WordPress wp_mail Filter(s): wp_staticize_emoji_for_email, PostsmtpMailer->get_mail_args

    WordPress wp_mail_from Filter(s): wordfence::fixWPMailFromAddress

    WordPress phpmailer_init Action(s): wpcf7_phpmailer_init, PostsmtpMailer->phpmailer_smtp_init

    Postman: 3.8.0

    Postman Sender Domain (Envelope|Message): ************.com | ***********.com

    Postman Prevent Message Sender Override (Email|Name): No | No

    Postman Active Transport: Other SMTP (smtp:tls:oauth2://smtp.gmail.com:587)

    Postman Active Transport Status (Ready|Connected): Yes | Yes

    Postman Deliveries (Success|Fail): 884 | 1274
    Plugin Support M Aqib Khan

    (@aqibkhan9)

    Thank you so much for sharing the requested information.

    I can see that you are currently using Gmail via SMTP. To mitigate the issue you’re experiencing, I would recommend switching to the Gmail API, which is more stable and reliable.

    To proceed, please click the Relaunch Wizard button on the Post SMTP Dashboard and select the Gmail API (Gmail socket) option. You can follow our comprehensive documentation, which walks through the setup process step by step.

    Should you need any assistance during the setup, please feel free to reach out. I’ll be happy to help.

    Thread Starter johnboy85

    (@johnboy85)

    That worked. Once I clicked relaunch wizard and chose the Gmail API a new window popped up and asked for me to give Google permissions for the plugin to send emails. My Client ID and Client secret auto refilled and then I sent a test email which worked.

    It seems I just needed to give Google permissions again to fix the plugin. Easy fix.

    Thanks for your help!

    Plugin Support M Aqib Khan

    (@aqibkhan9)

    Hey @johnboy85

    I am glad that the issue has been resolved.

    If Post SMTP has been useful, I’d request you to leave your kind reviews.

    HEllo, I had the same error and I partially solved like suggested in this thread. The problem is that I created the clientID and secret with my personal gmail account, but now is asking me to grant for the company gmail account. How the plugin generate that grant link? why is not redirecting me with the app account owner?

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

You must be logged in to reply to this topic.