Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 07, 2008 01:35 PM by satalaj
Apr 06, 2008 12:27 AM|LINK
Let me start off saying I'm a novice and have been teaching myself as I go. My site was setup and running well, and I had a feedback form that sent through email, and an email notice when a client account was activated. Things were great...
This next part I outline because my issue may not be in the addition of SSL, so just to have all facts availiable - My mobo had a cap pop, and ASUS sent an RMA, but unfortunatly I wound up having to rebuild the machine. I do not remember putting an SMTP
client on the machine before, I believe I did everything in code only, but I could be mistaken. Also I switched from Norton to Trend... I restored my website and database from my backups and then found that AT&T now requires SSL so, I needed to update it.
I have opened port 465 in my firewall (and even shut it down) to test / troubleshoot, but I just can't get this to work. I suspect the problem is in my code, but... I need some help to be sure.
Original VB.NET code
New VB.NET Code
Any ideas would be welcome. My head is tiring of being banged on the desk, and my eyes are tired of scanning books, websites, and my own code for ideas of what MIGHT be the problem (and not finding
the answer). Thank you in advance.
Apr 07, 2008 12:38 PM|LINK
Apr 07, 2008 01:35 PM|LINK
I tried using System.Net, TcpipClient
string username = Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes("yourYahooID"));
string password = Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes("Password"));
TcpClient tcpclient = new TcpClient();
System.Net.Security.SslStream sslstream = new SslStream(tcpclient.GetStream());
bool flag = sslstream.IsAuthenticated;
byte read = new byte ;
// sslstream.Write(System.Text.Encoding.ASCII.GetBytes("yourYahooID"), 0, System.Text.Encoding.ASCII.GetBytes("satalaj").Length);
System.IO.StreamWriter sw = new StreamWriter(sslstream);
sslstream.Read(read, 0, 1024);
string str = System.Text.Encoding.ASCII.GetString(read);
sw.WriteLine("This is test message from yahoo");
sslstream.Read(read, 0, 10024);
str = System.Text.Encoding.ASCII.GetString(read);
But No luck..........