我剛剛發佈了一個Rails應用程序Dreamhost,我正在使用Google Apps爲我的域處理Emai。我創建了[email protected]帳戶作爲發件人身份驗證。Dreamhost中的Rails + Gmail SMTP的傳遞問題
我安裝smtp-tls插件和我的SMTP的conf是:
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:enable_starttls_auto => true,
:address => "smtp.gmail.com",
:port => 587,
:domain => "www.domain.com",
:authentication => :plain,
:user_name => "[email protected]",
:password => 'secret'
}
問題:電子郵件有時到達,有時不。收件人地址不只是雅虎或GMail帳戶,所以我認爲這不是垃圾郵件問題。有任何想法嗎?謝謝!
我剛剛發現這個在插件回購:「如果」重新使用Ruby on Rails> = 2.2和Ruby v1.8.7或更高版本,您不需要這樣做,只需在您的ActionMailer配置中設置enable_starttls_auto「。但無論如何,發送郵件是隨機的。 – 2010-06-19 01:04:17