You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 fromActionMailer
. I solved this by updating theActionMailer
settings just before calling theview_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.The text was updated successfully, but these errors were encountered: