Sending emails

Hi, i am running a rails web application on freebsd.

I am having troubles sending emails.

i have this:

ActionMailer::Base.server_settings = {
:address => ‘smtp.mydomain.com’,
:domain => ‘mydomain.com’,
:port => 25,
:user_name => ‘user’,
:password => ‘password’,
:authentication=>:login
}

in environment.rb.

When i send an email through rails nothing happens. What else do i need
to do?

Check that your environment specific config doesn’t have the following
line in it:

config.action_mailer.delivery_method = :test

Or else the email will be routed to the corresponding log file. This
generally only applies to the test environment, but I wanted to point it
out (check development.rb).

Dennis B. wrote:

Check that your environment specific config doesn’t have the following
line in it:

config.action_mailer.delivery_method = :test

thats not there but i turned error messages on and i get:
/usr/local/lib/ruby/1.8/timeout.rb:54:in new' /usr/local/lib/ruby/1.8/net/protocol.rb:206:inold_open’
/usr/local/lib/ruby/1.8/timeout.rb:56:in timeout' /usr/local/lib/ruby/1.8/timeout.rb:76:intimeout’
/usr/local/lib/ruby/1.8/net/protocol.rb:206:in old_open' /usr/local/lib/ruby/1.8/net/smtp.rb:393:indo_start’
/usr/local/lib/ruby/1.8/net/smtp.rb:378:in start' /usr/local/lib/ruby/1.8/net/smtp.rb:316:instart’
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.2.1/lib/action_mailer/base.rb:447:in
perform_delivery_smtp' /usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.2.1/lib/action_mailer/base.rb:333:indeliver!’
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-1.2.1/lib/action_mailer/base.rb:227:in
method_missing' #{RAILS_ROOT}/app/controllers/coders_controller.rb:43:increate’

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs