title: problem with ActionMailer configuration in setup_email.rb
body: <p>I spent several days trying to get this work => I would like to send email from my application <strong>localhost</strong>, <strong>without</strong> using gmail or other mail server, so I tried this:</p>
  
  <p>in <strong>/config/initializers/setup_email.rb</strong></p>
  
  <pre><code>ActionMailer::Base.delivery_method = :smtp
  ActionMailer::Base.smtp_settings = {
      :address =&gt; "localhost",
      :port =&gt; 25
  }
  </code></pre>
  
  <p>But I got "<strong>Connection refused - connect(2)</strong>" error message like following:</p>
  
  <pre><code>Connection refused - connect(2)
  /home/user1/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/net/smtp.rb:551:in `initialize'
  /home/user1/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/net/smtp.rb:551:in `open'
  /home/user1/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/net/smtp.rb:551:in `do_start'
  /home/user1/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/timeout.rb:67:in `timeout'
  /home/user1/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/timeout.rb:101:in `timeout'
  /home/user1/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/net/smtp.rb:551:in `do_start'
  /home/user1/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/1.8/net/smtp.rb:525:in `start'
  /home/user1/.rvm/gems/ruby-1.8.7-p330@myapp/gems/mail-2.2.15/lib/mail/network/delivery_methods/smtp.rb:127:in `deliver!'
  /home/user1/.rvm/gems/ruby-1.8.7-p330@myapp/gems/mail-2.2.15/lib/mail/message.rb:1967:in `do_delivery'
  /home/user1/.rvm/gems/ruby-1.8.7-p330@myapp/gems/mail-2.2.15/lib/mail/message.rb:228:in `deliver'
  /home/user1/.rvm/gems/ruby-1.8.7-p330@global/gems/actionmailer-3.0.3/lib/action_mailer/base.rb:401:in `deliver_mail'
  /home/user1/.rvm/gems/ruby-1.8.7-p330@global/gems/activesupport-3.0.3/lib/active_support/messages.rb:52:in `instrument'
  /home/user1/.rvm/gems/ruby-1.8.7-p330@global/gems/activesupport-3.0.3/lib/active_support/messages/instrumenter.rb:21:in `instrument'
  </code></pre>
  
  <p>...</p>
  
  <p>How to configure <strong>localhost</strong> for ActionMailer?</p>
  
  <p>I searched on internet, it seems I <strong>MUST</strong> provide a <strong>username</strong> and <strong>password</strong> in the configuration, and set <strong>authentication</strong> option to some value, can I configure the ActionMailer without <strong>authentication</strong>, <strong>username</strong> and <strong>password</strong>? (because my app does not have a email account for login)
   how to configure to make localhost email sending feature to work?</p>