Guest.Visitor
01-10-2005, 01:38 PM
I am trying to write a C# code to send mail automatically (without using System.Web.Mail object) </BR> //this is to START TLS </BR> stdOut.WriteLine("STARTTLS");</BR> stdOut.Flush();</BR> responseCode = GetResponse(stdIn);</BR> < stdOut.WriteLine("MAIL FROM:<deepsfor.net@gmail.com>");</BR> stdOut.Flush();</BR> responseCode = GetResponse(stdIn);</BR> But it is giving error because responseCode is 0 </BR> I am not able to figure out the problem One more thing is I am using My ISP's outgoing mail server for the same. If I don't issue STARTTLS command it throws exception as 'Must issue STARTTLS command. Thanks in advance!! </BR>