-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Allow delivery method options to be set per mail instance #7397
Conversation
|
@josevalim views? thoughts? |
|
another gentle nudge /cc @josevalim |
|
@josevalim squashed and fixed as per your input. |
Allow delivery method options to be set per mail instance
|
Is this patch available in Rails 3.1.1 ? |
|
No it is not. It is also not available on 3.2.x branch. This has been merged only on Rails 4.0 Rails 3.2.x and below are not accepting new features anymore. |
|
Bad. I'm looking for exactly this right now. What would be the best way to On Thu, Oct 4, 2012 at 12:13 PM, Aditya Sanghi notifications@github.comwrote:
|
|
You can fork rails, apply the patch yourself, then use bundler to use your fork. |
|
@saurabhnanda I've written up a how-to here: http://blog.steveklabnik.com/posts/2012-10-04-run-rails-with-custom-patches |
|
@asanghi If I use sendmail, will |
|
Yes. @lulalala if the delivery_method is set to |
There is a common use case where mail settings are dynamic based on settings saved in database. For example, we could let companies provide us with their SMTP credentials which can be used to send email on their behalf. My particular use case dealt with creating a delivery method which sends SMSes based on company's credentials to company's users.
This PR allows the user to easily set delivery method settings from within the mail instance
or
The alternative to doing this would be rather ugly
We could try to set delivery options by resetting them on classes but I dont imagine it would be threadsafe to do that!
/cc @josevalim @mikel