Почтовая программа действий SMTP google apps

Я попытался настроить actionmailer для отправки через приложения Google с помощью 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 user@my.domain.com (10ms)
Completed 500 Internal Server Error in 29ms

535-5.7.1 Username and Password not accepted

На сервере работает ruby ​​1.9.3p194. Почему приложения Google не принимают имя пользователя/пароль?

7
задан Jubei 29 July 2012 в 05:19
поделиться