我试图配置actionmailer通过谷歌应用程序与smtp发送。动作邮件程序SMTP谷歌应用程序
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => "mydomain.com",
:user_name => "username",
:password => "password",
:authentication => 'plain',
:enable_starttls_auto => true }
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
但是每当gitlab尝试发送电子邮件:
Sent mail to [email protected] (10ms)
Completed 500 Internal Server Error in 29ms
535-5.7.1 Username and Password not accepted
服务器运行红宝石1.9.3p194。为什么Google应用不接受用户名/密码?
尝试登录到您的Gmail帐户,您可能需要授予您的应用程序的权限 – 2012-07-29 05:13:05
@KyleC我已经尝试过。我的应用程序是动作邮件程序。我需要授予SMTP权限吗? – Jubei 2012-07-29 05:21:15
否....这些错误是发生在开发(本地计算机)还是生产中? – 2012-07-29 05:24:51