title: Post and Errno::ECONNREFUSED (Connection refused - connect(2))
body: <p>I set up a contact form and posted something. And then I got an error message.</p>
  
  <pre><code>Errno::ECONNREFUSED (Connection refused - connect(2)):
  </code></pre>
  
  <p>I have no idea how to solve this. Could you help me?</p>
  
  <p>☆heroku logs</p>
  
  <pre><code>013-12-17T13:14:55.445509+00:00 app[web.1]: Started POST "/contacts" for 118.237.94.47 at 2013-12-17 13:14:55 +0000
  2013-12-17T13:14:55.450507+00:00 app[web.1]: Processing by ContactsController#create as HTML
  2013-12-17T13:14:55.450838+00:00 app[web.1]:   Parameters: {"utf8"=&gt;"✓", "authenticity_token"=&gt;"2e9zz3cX0tZwYTZhaPbRRYQuZrGi31fZk4OjjF7sdeo=", "contact"=&gt;{"name"=&gt;"荒牧さん", "email"=&gt;"sun@gmail.com", "content"=&gt;"どうなんすか！"}, "commit"=&gt;"Create Contact"}
  2013-12-17T13:14:55.549141+00:00 app[web.1]:   Rendered contact_mailer/sent.text.erb (0.6ms)
  2013-12-17T13:14:55.573616+00:00 heroku[router]: at=info method=POST path=/contacts host=www.tsundoku-buster.jp fwd="118.237.94.47" dyno=web.1 connect=2ms service=136ms status=500 bytes=643
  2013-12-17T13:14:55.570589+00:00 app[web.1]: 
  2013-12-17T13:14:55.570589+00:00 app[web.1]: Sent mail to suncountry99@gmail.com (16ms)
  2013-12-17T13:14:55.570797+00:00 app[web.1]: Completed 500 Internal Server Error in 120ms
  2013-12-17T13:14:55.572327+00:00 app[web.1]: 
  2013-12-17T13:14:55.572327+00:00 app[web.1]: Errno::ECONNREFUSED (Connection refused - connect(2)):
  2013-12-17T13:14:55.572327+00:00 app[web.1]:   app/controllers/contacts_controller.rb:6:in `create'
  </code></pre>
  
  <p>☆contacts_controller</p>
  
  <pre><code> #encoding: utf-8 
  class ContactsController &lt; ApplicationController
        def create
         @contact = Contact.new(params[:contact])
         if @contact.save
          ContactMailer.sent(@contact).deliver
          redirect_to static_pages_contact_path, :notice =&gt; 'お問い合わせありがとうございました。'
        else
          render static_pages_contact_path, :alert =&gt; 'お問い合わせに不備があります。'
        end
       end
  end
  </code></pre>