2013-07-18 50 views
1

我得到一个超时::错误(执行过期):当试图使用gmail帐户发送电子邮件。在我的config/environments/development.rb中,我有:Actionmailer不发送邮件

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   => '[email protected]', 
     :password    => 'password', 
     :authentication  => 'plain', 
     :enable_starttls_auto => true } 

这让我疯狂!

回答

-1

变化 config.action_mailer.delivery_method =:SMTP 到 config.action_mailer.delivery_method =:sendmail的

相关问题