• Resolved davidwjw

    (@davidwjw)


    Hello Post SMTP,

    I use your plugin on many of my websites. However I get errors now and again.

    I hook up using a Gmail API successfully and the STMP works perfectly fine for ages. Then one day, all of a sudden, it will just stop working. The password remains the same, but I get Bad Request(invalid_grant).

    As these are client websites they miss out on some emails and then I have to grant permission with Google again. Is there any reason why this happens and it doesn’t stay connected?

    Thank you
    David W

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @davidwjw,

    I hope this message finds you well.

    Thank you for contacting us regarding the issue you are facing. There are multiple reasons why we need to grant permission to Google again

    • Remove third-party access to your Gmail account.
    • The user updated their password and made changes to other login details.
    • Google has a policy in place that sets a maximum limit of 100 refresh tokens for each Google Account. Once this limit is reached, you will need to regrant permission
    • The service (refresh token) has not been used for six months.

    For more detailed information, you can refer to this documentation.

    Thanks and Regards,
    Support Team-WP Experts.

    Thread Starter davidwjw

    (@davidwjw)

    Thanks for your reply and information.

    Yes the login has stayed the same. Also third party access is still good.

    Hmmm its a bit annoying Google use these tokens. It would be great to just leave the plugin knowing it will work. Can you extend a tokens life any longer? Any other way around this?

    Hi @davidwjw,

    Extending token lifetimes is not recommended, as it compromises security. However, you can utilize numerous services or sockets provided by Post SMTP that enable you to send emails without the requirement for authentication. These services include Brevo, SendGrid API, and various others. You can explore a variety of services in this documentation.

    Additionally, you can set up failure notifications if you want to use the same service so that whenever an email fails to send for any reason, you’ll receive a notification. This ensures you stay informed and can take appropriate action when email delivery issues occur.

    You can setup email failure notification by using this documentation.

    Thanks and Regards,
    Support Team-WP Experts.

    Thread Starter davidwjw

    (@davidwjw)

    Righto thank you for the information. Have a good day.!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bad Request(invalid_grant) – Gmail Accounts’ is closed to new replies.