AR Mailer with changing settings?

437 views Asked by At

we're running ARMailer in one of our projects right now. It's working fine but as different customers are allowed to send confirmation emails via this service we want to offer them the possibility to use their own SMTP settings for that.

Is there a way to change ARMailer settings on the fly?

Or is there an ARMailer alternative maybe which abstracts this better?

Thanks

Matt

2

There are 2 answers

1
Matt On BEST ANSWER

What I did in the end was: I took the ARMailer gem and took a copy of it. After that, modified the email delivery action and started the daemon from my new custom folder. Works fine. Will create a custom some day...

0
Maximiliano Guzman On

this: Using multiple SMTP accounts with Rails & ActionMailer has a nice example using yaml for storing the multiple configurations, but can easily be adapted to use the db