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

[Feature request] Allow setting multiple API keys #83

Open
vassyz opened this issue Mar 14, 2023 · 0 comments
Open

[Feature request] Allow setting multiple API keys #83

vassyz opened this issue Mar 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@vassyz
Copy link

vassyz commented Mar 14, 2023

Some of our projects use multiple Notify services, requiring different API keys. The mail-notify gem doesn't seem to be supporting changing the API key as it reads it directly from ActionMailer. I solved this by updating the ActionMailer settings just before calling the view_mail method. This is not a very elegant solution and could potentially cause issues with parallel executions. Example here: https://github.com/DFE-Digital/refer-serious-misconduct/blob/main/app/mailers/application_mailer.rb Please let me know if there is a better way of making this work or if there are any plans to update the gem for this use case.

@mec mec added the enhancement New feature or request label Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants