Results 1 to 3 of 3
  1. #1

    Default Error Sending Emails with Ruby

    I am currently using Ruby to send emails, but getting the below error when sending email.

    Code:
    Errno::ECONNREFUSED: Connection refused - connect(2)
    Following is the Code that sends out an email:

    Code:
    Reminder.new_event(event_owner.email).deliver!
    Following are the settings of my email;

    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
      }
    Can anyone please help me to sort out this issue?

  2. #2
    Join Date
    Mar 2009
    Location
    UK
    Posts
    246

    Default

    Did you check it with other SMTP settings or to another email server, whether its working with them? Make sure and please let us know, if the issue is only with connecting to the Gmail server or all the other SMTPs.

  3. #3

    Default

    I'd suggest you to try restarting the application, just make sure that you kill the process before you restart it. I think that should work.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •