Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: Server does not support StartTls Error Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
RaeckeSchreiber
Newbie
Newbie


Joined: 10 March 2011
Online Status: Offline
Posts: 2
Posted: 10 March 2011 at 2:31am | IP Logged Quote RaeckeSchreiber

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 View RaeckeSchreiber's Profile Search for other posts by RaeckeSchreiber
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 10 March 2011 at 2:43am | IP Logged Quote Igor

Does the following help?

Code:
smtpServer.SslMode = SslStartupMode.OnConnect;


--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
RaeckeSchreiber
Newbie
Newbie


Joined: 10 March 2011
Online Status: Offline
Posts: 2
Posted: 10 March 2011 at 2:44am | IP Logged Quote RaeckeSchreiber

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 View RaeckeSchreiber's Profile Search for other posts by RaeckeSchreiber
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 10 March 2011 at 5:33am | IP Logged Quote Igor

And what about UseStartTlsIfSupported value? Also, make sure you're using the latest version of the DLL.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide