I am working on a Rails application with Devise gem for authentication.
I cannot recieve emails sent during Devise process like forgot password, as it seems mailing is not configured properly.
i tried to add configuration in production.rb file
config.action_mailer.delivery_method = :smtp
config.action_mailer.default_url_options = { :host => 'smtp.mydomain.com' }
What am i doing wrong? do i have to add any more configuration?
I got it working with the below configuration in production.rb file under environment
Hope it helps someone.. 🙂