Hi Carl,
In mail "[ruby-talk:19999] Net::SMTP::start times out on Windows 98 Ruby 1.6.4"
"Carl Youngblood" <carlyoungblood / email.com> wrote:
> I'm trying to send a test e-mail to myself on my ISP's mail server:
>
> require 'net/smtp'
>
> smtp = Net::SMTP.new
> puts "attempting to connect to mail server...\n";
> smtp.start('mail.csolutions.net') # script times out trying to
You must give server address to #new, not #start.
Unfortunitely Net::SMTP tries to connect localhost when host name is
omitted, so it is seemed as hang. In next version it doesn't connect
localhost, just raises error.
Minero Aoki