Email doesn't send from Rails app using Mandrill -
Email doesn't send from Rails app using Mandrill -
in production, rails app doesn't send emails. i'm using heroku.
i've viewed similar post, reply didn't help me.
it works gmail, doesn't mandrill.
gmail:
config.action_mailer.default_url_options = { host: 'app.herokuapp.com', :protocol => 'http' } config.action_mailer.smtp_settings = { address: "smtp.gmail.com", port: 587, user_name: env['username'], password: env['password'] } mandrill:
config.action_mailer.default_url_options = { host: 'app.herokuapp.com', :protocol => 'http' } config.action_mailer.smtp_settings = { address: "smtp.mandrillapp.com", port: 25, user_name: env['username'], password: env['api_key'] } also note i've tried switching port numbers!
i had used mandrill 1 of application , didn't complication. please seek utilize these set of configuration , allow me know if doesn't work you
config.action_mailer.default_url_options = { host: 'app.herokuapp.com' } config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address => "smtp.mandrillapp.com", :port => 587, :user_name => env['username'], :password => env['api_key'], :authentication => 'login', :enable_starttls_auto => true, :openssl_verify_mode => 'none' } ruby-on-rails email heroku mandrill
Comments
Post a Comment