Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle email delivery timeouts #35

Open
airblade opened this issue Aug 17, 2023 · 0 comments
Open

Handle email delivery timeouts #35

airblade opened this issue Aug 17, 2023 · 0 comments

Comments

@airblade
Copy link
Owner

An app using email confirmation ran into a problem when the email delivery gem (Postmark in this case) wasn't able to establish a connection to Postmark.

QuoVadis.deliver :account_confirmation, {email: model.email, otp: otp}

mail.deliver_later :
mail.deliver_now

The error:

A Postmark::TimeoutError occurred in people#create:

 Failed to open TCP connection to [api.postmarkapp.com:443](http://api.postmarkapp.com:443/) (execution expired)

We should catch this exception and log the error. Ideally we would notify the user in the UI.

Whether or not the user is notified in the UI, they will be able to press the "send me another confirmation email" button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant