【发布时间】:2010-10-22 04:47:51
【问题描述】:
我已经通过激活安装了来自 technoweenie 的 restful_authentcation,所以我看到了生成的 UserMailer
但是,说明不包括如何设置它以使用 Google SMTP。
我猜测 environment/development.rb 需要有 SMTP 设置,但仍然不确定 Google(通过 Google 应用程序)是否都是 TLS。
有人使用 restful_authentication 设置激活吗?
我目前将以下内容放入environments.rb:
ActionMailer::Base.smtp_settings = {
:enable_starttls_auto => true,
:address => "smtp.gmail.com",
:port => "587",
:domain => "mydomain.com",
:authentication => :plain,
:user_name => "xxx@mydomain.com",
:password => "mypassword"
}
谢谢!!
【问题讨论】:
标签: ruby-on-rails gmail restful-authentication