Hello, none of the values look wrong, but this
seems to be an instance of one of your class and we don't know what's going on inside it.
Could you please try running the following code (replace the username and password with actual values) and let us know whether it works? And if it doesn't, please send us the rebex-log.txt
log file for analysis - we might then be able to tell what is going on.
var smtp = new Smtp();
smtp.LogWriter = new FileLogWriter("rebex-log.txt", LogLevel.Debug);
smtp.Connect("secure.emailsrvr.com", 465, SslMode.Implicit);
smtp.Encoding = new System.Text.UTF8Encoding();
smtp.Login("foo@xxxxxxx.com", "password", SmtpAuthentication.Login);
By the way, it's usually better to use SmtpAuthentication.Auto
instead of SmtpAuthentication.Login
because it automatically chooses from the list of supported methods. In this case, the server appears to support Login
in addition to Plain
.