Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6252085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:44:05+00:00 2026-05-24T13:44:05+00:00

I have a controller in a Rails 3 app that, after creating a new

  • 0

I have a controller in a Rails 3 app that, after creating a new object of type WorkRequest, sends an e-mail to the requester. Works for all of my users except one. When she tries it I get the following in the server log.

Started POST "/work_requests" for 172.16.42.150 at Mon Aug 08 14:42:53 -0400 2011
  Processing by WorkRequestsController#create as HTML
  Parameters: {"commit"=>" Save ", "authenticity_token"=>"GhhZ6S0mBaju2zs5Fc7M+u5SoLCke5CRSdVCvLzMK1Q=", "utf8"=>"✓", "work_request"=>{"work_due_date"=>"2011-12-01", "person_id"=>"525", "status"=>"Pending", "last_request_date"=>"", "requester_id"=>"5", "pier_module_id"=>"223"}}
Rendered person_mailer/work_request_init_email.html.erb (2.4ms)
Rendered person_mailer/work_request_init_email.text.erb (1.8ms)

Sent mail to hkitzmiller@acponline.org (409ms)
Completed   in 548ms

Errno::ECONNREFUSED (Connection refused - connect(2)):
  app/controllers/work_requests_controller.rb:57:in `create'
  app/controllers/work_requests_controller.rb:54:in `create'

It appears to have sent the e-mail (she’s left for the day so I can’t ask if she received it) but the line it’s failing on in the controller the line that invokes the mailer, so I’m not sure.

PersonMailer.work_request_init_email(@work_request).deliver

Can’t seem to find any solid info on what ECONNREFUSED means. Is the mail server refusing the connect (in which case why does it appear the mail was sent?) or is the web server refusing to connect after the mail is sent.

What might cause either server to refuse a connection with this particular user?

Any help would be much appreciated. All the other users of the app seem to be working fine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T13:44:06+00:00Added an answer on May 24, 2026 at 1:44 pm

    This generally is an error caused by a failed connection to the SMTP server. I’d say double check your settings in your environment files (production.rb most likely) and double check the email address. You might also check to see if there’s a limit set by the SMTP server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Rails application that unfortunately after a request to a controller, has
Using Rails v2.1, lets say you have an action for a controller that is
I have a rails app that is combining javascript assets using Jammit , and
I have a controller action that is being executed by a link that was
I have multiple controller actions that takes an id public ActionResult Get(int? id) {
Say I have a controller with an Index Method and a Update Method. After
I am looking at a rails app and at the top of every controller
Ruby on Rails controllers will automatically convert parameters to an array if they have
When submitting one form from view, how can i also read or have controller
I have a controller with an action method as follows: public class InventoryController :

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.