Hi,
i have the problem that i had to roll out my software :-) On the test machine with a different SMTP server everything worked as it should. No I have rolled out my application and change the SMTP server to the one from the customer. The result:
"Unable to initialize security subsystem (554)"
MailSecurity has been set to Secure (an for testing to Unsecure). Here is the code I use:
Smtp client = new Smtp();
TlsParameters par = new TlsParameters();
par.CommonName = AppGeneral.strMailServer; // contains the IP of the mail server (and yes, it is pingable)
par.CertificateVerifier = CertificateVerifier.AcceptAll;
par.AllowedSuites = TlsCipherSuite.All;
client.Connect(AppGeneral.strMailServer, AppGeneral.intMailServerPort, par, AppGeneral.secMailServer);
client.Login(AppGeneral.strMailServerUser, AppGeneral.strMailServerPwd);
MailMessage msg = new MailMessage();
msg.To.Add(strTo);
msg.Sender = AppGeneral.strMailServerSender; // contains both the sender mail address
msg.From = AppGeneral.strMailServerSender; // contains both the sender mail address
msg.Subject = dr.Field<string>("subject");
msg.BodyHtml = dr.Field<string>("message");
client.Send(msg);
// CleanUp
Please help.
Best regards
Jochen Auinger