From: Sean O'Dell Date: 2002-03-02T14:27:41+09:00 Subject: Re: Net::SMTP ECONNREFUSED Nevermind, I lied...I had forgotten a parameter. The example in your book worked, but I don't get the here document thing quite yet. Sean "Sean O'Dell" wrote in message news:97Zf8.16859$Xn2.446268588@newssvr21.news.prodigy.com... > "Dave Thomas" wrote in message > news:m2y9hb4lnm.fsf@zip.local.thomases.com... > > "Sean O'Dell" writes: > > > > > smtp = Net::SMTP.new > > > smtp.start("celsoft.com") > > > > Are you running a SMTP server on localhost? If not, you'll see that > > error. The name you pass to 'start' is the HELO domain, not the > > address of the server. You can specify the server as the parameter to > ::new. > > > > Also, the SMTP interface is changing, and the zero-argument > > constructor no longer works. In general, it's probably better to use > > the SMTP::start method to do the whole thing: > > > > > > Net::SMTP.start( 'your.smtp.server', 25 ) {|smtp| > > smtp.sendmail < > From: Your Name > > To: Dest Address > > Subject: test mail > > Date: Sat, 23 Jun 2001 16:26:43 +0900 > > Message-Id: > > > > This is test mail. > > EndOfMail > > } > > I tried it this way, but I kept getting the error that EndOfMail couldn't be > found, so I went with something similar out of your book. That gave me no > syntax headache, but I still get connection refused. > > Sean > >