Rails Mail ISSUE

Hi,
I have the following configuration in the development.rb defined for
sending mail thorugh rails.
The same works on a local machine but it does not work on the server. I
get a timeout error : execution expired. Can anyone tell me whats wrong.

config.action_mailer.delivery_method = :smtp

#these options are only needed if you choose smtp delivery
config.action_mailer.smtp_settings = {
:address => “mail.domainname.com”,
:port => 25,
:authentication => :login,
:user_name => “[email protected]”,
:password => ‘1234567’
}

Please help me.

Thank you.

Are you able to use smtp on the server without Rails? As it is timing
out I would guess your smtp settings on the server are not correct.

harm wrote:

Are you able to use smtp on the server without Rails? As it is timing
out I would guess your smtp settings on the server are not correct.

Hi,
The same settings work on the local machine.
I am able to send mail using outlook, so smtp is working fine.

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