Hi,
We recently upgraded to Aspose.Email 5.7, and implement codes to test all 3 emails protocol, but fail to return correct result.
With wrong Login (email address) / Password or both, pop3Client / imapClient / smtpClient always return connected without error.
Have try to on off the property - UseDefaultCredentials, UseAuthentication, SecurityOptions.Auto (for SSL). All test connection return pass without error.
Here is the sample code.
– smtp –
mSmtpClient = new SmtpClient(Server, Port, Login, Password);
mSmtpClient.AuthenticationMethod = SmtpAuthentication.Login;
mSmtpClient.DeliveryMethod = SmtpDeliveryMethod.Network;
mSmtpClient.UseDefaultCredentials = true;
mSmtpClient.UseAuthentication = true;
if (EnableSSL)
{
mSmtpClient.SecurityOptions = SecurityOptions.SSLImplicit;
[//mSmtpClient.SecurityOptions](https://msmtpclient.securityoptions/) = SecurityOptions.Auto;
}
– pop3 –
mPop3Client = new Pop3Client(Server, Port, Login, Password);
mPop3Client.UseDefaultCredentials = true;
mPop3Client.UseAuthentication = true;
if (EnableSSL)
{
mPop3Client.SecurityOptions = SecurityOptions.SSLImplicit;
[//mPop3Client.SecurityOptions](https://mpop3client.securityoptions/) = SecurityOptions.Auto;
}