the-refinery / sparkpost_rails

Sparkpost delivery method for ActionMailer
MIT License
66 stars 62 forks source link

Turn off Sparkpost SMTP dynamically #49

Closed ManuelFrigerio closed 6 years ago

ManuelFrigerio commented 7 years ago

Hi,

Is it possible to turn off this gem on the fly? In my case, I want people to use their own SMTP settings but when I try emails are still sent through SparkPost.

Thanks

dgoerlich commented 6 years ago

Actually, I think this might be how to accomplish this:

https://stackoverflow.com/questions/6572344/switch-mail-delivery-method-in-rails-during-runtime?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa