Reputation: 4003
I am using sendgrid to send emails in production my all other emails are being sent as expected but all the devise emails are not being sent neither a crash occur my in my production.rb I have
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"]
}
Why my other emails are being sent except devise emails via sendgrid and how can I be able to send devise emails using sendgrid?
Upvotes: 0
Views: 248
Reputation: 1511
If you switch config.raise_delivery_errors
to true
then you'll be able to see if there's a specific problem and work backwards from there.
Upvotes: 2