我使用 Google 从我的 Rails 应用程序发送电子邮件时收到错误消息,内容如下:
A Net::SMTPAuthenticationError occurred in messages#create
454 4.7.0 Cannot authenticate due to temporary system problem. Try again later. ch3sm7566201qab.9
/usr/ruby1.9.2/lib/ruby/1.9.1/net/smtp.rb:966:in `check_auth_response'
这是我的setup_mail.rb
:
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => 'oursite.com',
:user_name => 'support@oursite.com',
:password => 'password',
:authentication => 'plain',
:enable_starttls_auto => true
}
有什么想法吗?