我想配置的ActionMailer從設計發送郵件在開發模式與我的谷歌Apps帳戶。我已經將以下內容添加到我的config/environments/development.rb文件中,但它看起來像郵件沒有被髮送。請注意:這適用於Google Apps,而不適用於Gmail(但Gmail服務器應該可以運行 - 它們可以在我的郵件客戶端中運行)。的Rails的ActionMailer W /設計+谷歌Apps的開發模式
任何跳出我的配置是很奇怪嗎?
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:enable_starttls_auto => true,
:address => "smtp.gmail.com",
:port => 587,
:domain => "mydomain.com",
:authentication => :login,
:user_name => "[email protected]",
:password => "mypass"
}
你設置了config.action_mailer.raise_delivery_errors = true嗎? – 2011-05-03 05:49:48