我收到超时::错误(执行已过期):尝试使用Gmail帐户发送电子邮件时。在我的config / environments / development.rb中,我有:
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => 'mydomain.com',
:user_name => 'me@mydomain.com',
:password => 'password',
:authentication => 'plain',
:enable_starttls_auto => true }
这让我疯了!
答案 0 :(得分:-1)
更改 config.action_mailer.delivery_method =:smtp 至 config.action_mailer.delivery_method =:sendmail