1
使用谷歌,肚裏
我得到的錯誤從我的Rails應用程序發送e-mail:網:: SMTPAuthenticationError發生在消息#創建
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 => '[email protected]',
:password => 'password',
:authentication => 'plain',
:enable_starttls_auto => true
}
任何想法發生了什麼?
:user_name應該是gmail,並且與它的密碼相同。嘗試從gmail.com網站登錄。如果打開,用戶名和密碼不匹配。 :user_name應該是'[email protected]' – vajapravin
@vajapravin那些細節是正確的。謝謝! – sscirrus
添加此ActionMailer :: Base.delivery_method =:smtp – vajapravin