AR 邮件程序可以更改设置吗?
我们现在正在我们的一个项目中运行 ARMailer。 它工作正常,但由于允许不同的客户通过此服务发送确认电子邮件,我们希望为他们提供使用自己的 SMTP 设置的可能性。
有没有办法即时更改 ARMailer 设置?
或者是否有 ARMailer 替代方案可以更好地抽象这一点?
谢谢马特
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
this: 在 Rails 和 Rails 中使用多个 SMTP 帐户 行动邮递员
有一个很好的例子,使用 yaml 来存储多个配置,但可以很容易地适应使用数据库
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
我最终所做的是:
我拿走了 ARMailer gem 并复制了它。
之后,修改电子邮件传递操作并从我的新自定义文件夹启动守护程序。 工作正常。 有一天会创建一个自定义...
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...