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

Setup global retry using mail settings #117

Open
ankursethi27 opened this issue Feb 29, 2024 · 0 comments
Open

Setup global retry using mail settings #117

ankursethi27 opened this issue Feb 29, 2024 · 0 comments

Comments

@ankursethi27
Copy link

We're seeing timeouts in calling Sendgrid API and has set the following settings in action mailer -
Net::OpenTimeout Failed to open TCP connection to api.sendgrid.com:443 (execution expired)

Is there a way to setup retries globally or any other approach to reduce timeouts ?

config.action_mailer.sendgrid_actionmailer_settings = {
    api_key: <>,
    raise_delivery_errors: true,
    http_options: { open_timeout: 3 }
}
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