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-8Ru2MIxcQXYFQeE35raUng@public.gmane.org", :password => ''1234567'' } Please help me. Thank you. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. On Apr 1, 7:55 pm, Ank Ag <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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 => "a...-8Ru2MIxcQXYFQeE35raUng@public.gmane.org", > :password => ''1234567'' > > } > > Please help me. > > Thank you. > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---