2016-04-04 20 views
1

當我嘗試使用谷歌的Apps帳戶發送一些電子郵件我收到此錯誤:的ActionMailer - 發送電子郵件與谷歌Apps不工作,但有免費的Gmail帳戶工作

EOFError: end of file reached

使用免費的Gmail帳戶電子郵件發送成功。

這是我的梅勒配置:

config.action_mailer.smtp_settings = { 
    address: "smtp.gmail.com", 
    port: 587, 
    domain: "devsup.com.br'", 
    user_name: "[email protected]", 
    password: "password", 
    enable_starttls_auto: true, 
    authentication: "plain" 
} 

有人有一些IDEIA什麼,我必須這樣做?我的Google Apps帳戶必須配置一些配置嗎?

謝謝! :)

回答

1

我們有類似的問題。嘗試域設置爲gmail.com,像這樣:

config.action_mailer.smtp_settings = { 
    address: "smtp.gmail.com", 
    port: 587, 
    domain: "gmail.com", 
    user_name: "[email protected]", 
    password: "password", 
    enable_starttls_auto: true, 
    authentication: "plain" 
} 

編輯: 或是儘量確保刪除錯字域中。目前,您的域名中還有一個額外的單引號。

+1

謝謝!我沒有在我的域中看到單引號。這是非常有幫助的。 :) – bbcbreno

相關問題