J
John J. Hughes II
I have an application that sends simple e-mails using SMTP, it no longer
works with a lot of e-mail servers.
Basically the problem seems to be that I am no longer sending a valid logon
sequence. The server says the user is not authorized, if I switch to
Outlook it works.
Code to send authorizion.
this.SendData("AUTH LOGIN" + CRLF);
string user =
Convert.ToBase64String(System.Text.ASCIIEncoding.ASCII.GetBytes(this.User));
this.SendData(user + CRLF);
string pw =
Convert.ToBase64String(System.Text.ASCIIEncoding.ASCII.GetBytes(this.Password));
result = this.SendData(pw + CRLF);
if(result.StartsWith("235"))
break;
This is what outlook is doing per the log file:
[tx] AUTH NTLM
<rx> 334 NTLM supported
[tx] TlRM.....
Any one know how to send NTLM type logon or another methed to work around
this problem?
Regards,
John
works with a lot of e-mail servers.
Basically the problem seems to be that I am no longer sending a valid logon
sequence. The server says the user is not authorized, if I switch to
Outlook it works.
Code to send authorizion.
this.SendData("AUTH LOGIN" + CRLF);
string user =
Convert.ToBase64String(System.Text.ASCIIEncoding.ASCII.GetBytes(this.User));
this.SendData(user + CRLF);
string pw =
Convert.ToBase64String(System.Text.ASCIIEncoding.ASCII.GetBytes(this.Password));
result = this.SendData(pw + CRLF);
if(result.StartsWith("235"))
break;
This is what outlook is doing per the log file:
[tx] AUTH NTLM
<rx> 334 NTLM supported
[tx] TlRM.....
Any one know how to send NTLM type logon or another methed to work around
this problem?
Regards,
John