From: Francis Cianfrocca Date: 2006-07-31T15:30:49+09:00 Subject: Re: TCPSocket and RFC 821 Satish Talim wrote: > I tried the various suggestions given by Francis and Yohanes, but still > it > does not work. > What happens if you simply telnet to the SMTP server and enter all of the commands interactively? And, based on your last code framgment, you haven't cleaned up all the extra linefeeds you're sending. Change puts to write throughout, and change "QUIT" to "QUIT\r\n" Also, your Net::SMTP fragment uses authentication and your socket-code fragment does not. Although most mail servers would give a recognizable error msg if they required auth. -- Posted via http://www.ruby-forum.com/.