From: Satish Talim Date: 2006-07-31T16:20:50+09:00 Subject: Re: TCPSocket and RFC 821 ------=_Part_63487_6615989.1154330446122 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I used Telnet and it got stuck when I typed . to stop the DATA. What change do I need to make in the TCPSocket code for authentication? On 7/31/06, Francis Cianfrocca wrote: > > 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/. > > -- Satish Talim http://www.puneruby.com/blog/ ------=_Part_63487_6615989.1154330446122--