消息#create中发生Net :: SMTPAuthenticationError

时间:2012-09-29 06:05:04

标签: ruby-on-rails ruby-on-rails-3 actionmailer google-apps

我收到使用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
}

任何想法发生了什么?

1 个答案:

答案 0 :(得分:0)

我从Python那里得到了一些问题,只需在线登录gmail帐户修复它。