I am currently using Ruby to send emails, but getting the below error when sending email.
Following is the Code that sends out an email:
Following are the settings of my email;
Can anyone please help me to sort out this issue?
Code:
Errno::ECONNREFUSED: Connection refused - connect(2)
Code:
Reminder.new_event(event_owner.email).deliver!
Code:
config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => "google.com", :authentication =>"login", :user_name => "email address", :password => "password", :enable_starttls_auto => true }
Comment