Hello,
I get the following error while trying to authenticate against a smtp mail server:
"Authentication unsuccessful (535).".
It's interesting that I can log in to this server and even send a mail when using .net object System.Net.Mail.SmtpClient (using the same credentials).
So, the following code works:
using (SmtpClient client = new SmtpClient("{server_name_or_address}", 25))
{
client.Credentials = new System.Net.NetworkCredential("{username}", "{password}");
client.Send("{from}", "{to}", "TEST", "TEST");
}
However, when using Rebex library - the aforementioned exception occurs on login line:
Smtp smtp = new Smtp();
smtp.Connect("{server_name_or_address}", 25, null, SmtpSecurity.Unsecure);
smtp.Login("{username}", {password});
The server does not allow explicit ssl connection, actually I've tried different configurations playing with SmtpAuthentication and SmptSecurity parameters.
My question is - why I can log in using the .net classes and how can I provide the same configuration as .net library do? Or, is there a way do debug and get infomation about passed parameters and credentials?
Regards,
Velin Achev