我正在使用sendgrid和action mailer从部署在Heroku上的rails应用程序发送电子邮件。我的电子邮件正在传送中,但我在Sendgrid中看不到任何电子邮件活动。打开跟踪应用程序已启用。
我想知道我是否正确地设置了应用程序?我正在使用sendgrid-ruby gem,并且我设置了
config.action_mailer.default_url_options = { host: ENV["DOMAIN"] }和
ActionMailer::Base.smtp_settings = {
:address => 'smtp.sendgrid.net',
:port => '587',
:authentication => :plain,
:user_name => ENV['SENDGRID_USERNAME'],
:password => ENV['SENDGRID_PASSWORD'],
:domain => 'heroku.com',
:enable_starttls_auto => true
}还有什么我需要做的吗?
发布于 2015-03-17 23:01:36
SendGrid昨天遇到电子邮件活动问题(https://support.sendgrid.com/hc/en-us/articles/205074437-16-Mar-Email-Activity-Unavailable-)
我会联系他们的支持团队(support@sendgrid.com),让他们看看。
https://stackoverflow.com/questions/29099311
复制相似问题