Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Development Actionmailer setup problems (See related posts)

Has anyone been able to do this? My ActionMailer works fine when it's on barclay, but for developing locally I can't make a connection. I get:

Errno::ECONNREFUSED in Contact#index

Connection refused - connect(2)

/app/controllers/contact_controller.rb:6:in `index'

My isp doesn't block port 25:

[] % telnet 25
Connected to
Escape character is '^]'.
220 ESMTP Postfix

And my ActionMailer config in config/environments/development.rb is this:

ActionMailer::Base.server_settings = {
  :address  => "",
  :port  => 25, 
  :domain  => '',
  :user_name  => "#{username}", # without @domain
  :password  => "#{password}",
  :authentication  => :plain

Comments on this post

lholden posts on Sep 21, 2005 at 18:59
try changing this line:
  :domain  => '',

  :domain  => '',

You need to create an account or log in to post comments to this site.

Related Posts