Net::ReadTimeout: Net::ReadTimeout issue in sending mails

Net::ReadTimeout: Net::ReadTimeout issue comes when you are trying to outbound a mail.

To solve the issue you need to add a key value pair of tls in your mailer configuration in any environment for ex:

1.)development.rb

config.action_mailer.smtp_settings = {
    :user_name => 'user@domain.com',
    :password => 'password',
    :address => 'user191@gmail.com',
    :domain => 'domain.com',
    :port => 465,
    :authentication => :login,
    :enable_starttls_auto => true,
    :tls => true}
2.)UserMailer.rb
default from: "user@domain.com" 

Comments

Popular posts from this blog

Installing Wowza Streaming Engine on ubuntu

Highcharts with grouped categories

Completely Uninstall and Install Rubymine on ubuntu