0
我使用sendgrid在生產中發送電子郵件我的所有其他電子郵件都按預期發送,但所有設計電子郵件都沒有發送,也沒有發生崩潰在我production.rb我有設計電子郵件不是使用sendgrid發送,而其他電子郵件發送得很好
config.action_mailer.raise_delivery_errors = false
config.action_mailer.default_url_options = { :host => 'myapp.herokuapp.com' }
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: 'smtp.sendgrid.net',
port: 587,
domain: 'heroku.com',
authentication: "plain",
enable_starttls_auto: true,
user_name: ENV["SENDGRID_USERNAME"],
password: ENV["SENDGRID_PASSWORD"]
}
爲什麼被除色器件通過電子郵件發送sendgrid我的其他電子郵件,我該怎麼能夠發送電子郵件,設計使用sendgrid?
這可能會幫助你http://stackoverflow.com/questions/27815873/not-receiving-confirmation-mail-with-devise – Pavan
謝謝@Pavan,但正如我所說我的其他通知/電子郵件正在通過sendgrid發送正確 –
這是發生在本地,生產還是兩者? –