Author |
|
RaeckeSchreiber Newbie
Joined: 10 March 2011
Online Status: Offline Posts: 2
|
Posted: 10 March 2011 at 2:31am | IP Logged
|
|
|
Hi, we are using critsend's SMTP servers for our newsletters. Using the standard
.NET SmtpClient with System.Net.NetworkCredential works, but we can't make it
work with MailBee's SmtpServer.
The following code fails because the server answers "The server does not support
STARTTLS (STLS for POP3) command.":
SmtpServer smtpServer = new SmtpServer("smtp.critsend.com");
smtpServer.Port = 587;
smtpServer.AccountName = "MY NAME";
smtpServer.Password = "MY PASSWORD";
Smtp.LicenseKey = "MY KEY";
Smtp smtp = new Smtp();
smtp.SmtpServers.Add(smtpServer);
MailMessage mailMessage = new MailMessage();
mailMessage.To.Add("MY EMAIL");
mailMessage.Subject = "Test";
mailMessage.From.Email = "MY EMAIL";
smtp.Message = mailMessage;
smtp.Send();
Setting smtpServer.SslMode = SslStartupMode.Manual doesn't help. How can I turn
off StartTLS?
We are using MailBee.NET.5.5.2.138.
Any help is greatly appreciated.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 10 March 2011 at 2:43am | IP Logged
|
|
|
Does the following help?
Code:
smtpServer.SslMode = SslStartupMode.OnConnect; |
|
|
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
RaeckeSchreiber Newbie
Joined: 10 March 2011
Online Status: Offline Posts: 2
|
Posted: 10 March 2011 at 2:44am | IP Logged
|
|
|
Thanks for the quick reply, but no, it says now:
System.IO.IOException: The handshake failed due to an unexpected packet format.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 10 March 2011 at 5:33am | IP Logged
|
|
|
And what about UseStartTlsIfSupported value? Also, make sure you're using the latest version of the DLL.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|