Ruby Forum Ruby on Rails > Rails Mail ISSUE

Posted by Ank Ag (ankit2584)
on 01.04.2008 19:55
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        =>  "abc@domainname.com",
  :password          =>  '1234567'
}

Please help me.

Thank you.
Posted by harm (Guest)
on 01.04.2008 20:09
(Received via mailing list)
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.
Posted by Ank Ag (ankit2584)
on 01.04.2008 20:29
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.