配置 mail.rb 进行本地主机测试
是否可以配置mail.rb(在RESTFUL身份验证中)来本地测试电子邮件激活?默认文件是
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address => "mail.example-domain.com",
:port => 25,
:domain => "www.example-domain.com",
:authentication => :login,
:user_name => "[email protected]",
:password => "secret"
}
thanks
is it possible to configure mail.rb (in RESTFUL authentication) to test email activation locally? the default file is
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address => "mail.example-domain.com",
:port => 25,
:domain => "www.example-domain.com",
:authentication => :login,
:user_name => "[email protected]",
:password => "secret"
}
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这可能会有所帮助:
只需制作一个包含所有配置的 yaml 文件
This might help:
Just make a yaml file with all the config
我真的很喜欢使用 MailTrap —— 一个本地 SMTP 服务器,它了解 SMTP 足以侦听 ActionMailer请求...并将它们写入一个文件,您可以稍后查看它们。
I really like using MailTrap -- a local SMTP server that knows Just Enough about SMTP to listen to ActionMailer requests... and write them to a file where you can look at them later.