2009/12/11 pepe <[email protected]>: > Thanks Kristian. > > I've thought about this and what I would probably do is store the > information for ActionMailer in a YAML file. Getting the data is not a > problem, the problem is how to make ActionMailer use the changed > configuration without restarting the web server. > > If I am not mistaken if the configuration is in environment.rb, when > the web server starts it runs environment.rb and the configuration is > set, in memory and will not change unless the web server (btw, I am > using Mongrel only, for a very tiny in-house site) is restarted. > > What I would like to know is how to change the configuration so when I > change the values after a user makes a change the next e-mail sent > uses the new configuration without the need to restart the web server.
The class-methods `delivery_method', `smtp_settings' and `sendmail_settings' on ActionMailer::Base can maybe help you. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

