Forum: Ruby on Rails ActionMailer timeout problems

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bcc9d839e7c40d455912d9c066575eb8?d=identicon&s=25 Martin Chandler (browntiger)
on 2006-06-08 04:41
Hi,

I am having problems getting ActionMailer to send any mail.
I am developing on windows XP with lighttpd and scgi.

my settings are as follows(my.domain.net is replaced with a correct mail
server):
config.action_mailer.server_settings = {
  :address  => "my.domain.net",
  :port  => 25,
  :domain  => "domain.net"
}
config.action_mailer.raise_delivery_errors = true

The mail server does not require authentication.

The error I get is:
c:/ruby/lib/ruby/1.8/timeout.rb:54:in `rbuf_fill': execution expired
(Timeout::E
rror)
        from c:/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout'
        from c:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout'
        from c:/ruby/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill'
        from c:/ruby/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
        from c:/ruby/lib/ruby/1.8/net/protocol.rb:126:in `readline'
        from c:/ruby/lib/ruby/1.8/net/smtp.rb:664:in `recv_response'
        from c:/ruby/lib/ruby/1.8/net/smtp.rb:396:in `do_start'
        from c:/ruby/lib/ruby/1.8/net/smtp.rb:686:in `critical'
        from c:/ruby/lib/ruby/1.8/net/smtp.rb:396:in `do_start'
        from c:/ruby/lib/ruby/1.8/net/smtp.rb:378:in `start'
        from c:/ruby/lib/ruby/1.8/net/smtp.rb:316:in `start'
        from
c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.1/lib/action_mailer
/base.rb:447:in `perform_delivery_smtp'
        from
c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.1/lib/action_mailer
/base.rb:333:in `deliver!'
        from
c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.1/lib/action_mailer
/base.rb:227:in `method_missing'
        from (irb):2:in `irb_binding'
        from c:/ruby/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding'
        from c:/ruby/lib/ruby/1.8/irb/workspace.rb:52

netstat doesn't show any connection attempt to the mail server being
made.

Any help would be appreciated!
15f79f3bf0170e6297ce3d9c21101a70?d=identicon&s=25 Daniel Thompson (Guest)
on 2006-06-08 07:47
(Received via mailing list)
> I am having problems getting ActionMailer to send any mail.
> I am developing on windows XP with lighttpd and scgi.

I would try first seeing if you can do it from a telnet session. Check
out
this page for help:

http://www.garnetchaney.com/how_to_telnet_to_a_mai...
Bcc9d839e7c40d455912d9c066575eb8?d=identicon&s=25 Martin Chandler (browntiger)
on 2006-06-08 07:57
Thanks for the response.

Telnet works fine.  I can also send mail using Thunderbird, etc.
I've also tried using an IP address for :address as well, in case of DNS
problems, to no avail.

Daniel Thompson wrote:
>> I am having problems getting ActionMailer to send any mail.
>> I am developing on windows XP with lighttpd and scgi.
>
> I would try first seeing if you can do it from a telnet session. Check
> out
> this page for help:
>
> http://www.garnetchaney.com/how_to_telnet_to_a_mai...
This topic is locked and can not be replied to.