Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: SSL-related Win32 function returned an er Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Roel
Newbie
Newbie


Joined: 19 January 2009
Online Status: Offline
Posts: 1
Posted: 19 January 2009 at 2:19am | IP Logged Quote Roel

Hi,

I get the following problem with sending e-mails.

SSL-related Win32 function returned an error. See NativeErrorCode property value for more information. The Win32 error code is: -2146893048.

I use hmailserver without the SSL component (I can't configure it anywhere). I use Mailbee.Net without the SSL component (I can't configure it anywhere)

What Is do is use port 465 for SMTP without using SSL because my ISP blocks 25. Could this be the problem?

Thanks!!

Roel
Back to Top View Roel's Profile Search for other posts by Roel
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 19 January 2009 at 6:46am | IP Logged Quote Igor

Quote:
What Is do is use port 465 for SMTP without using SSL because my ISP blocks 25. Could this be the problem?


Yes, this seems to be the reason of the issue you faced. In most cases, SMTP servers expect SSL-enabled connections on port 465. Try connecting as follows:

Code:
Smtp mailer = new Smtp();
SmtpServer server = new SmtpServer("mail.domain.com", "user", "passwd");
server.Port = 465;
server.SslMode = SslStartupMode.onConnect;
mailer.SmtpServers.Add(server);


Regards,
Igor
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