Author |
|
Roel Newbie
Joined: 19 January 2009
Online Status: Offline Posts: 1
|
Posted: 19 January 2009 at 2:19am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 19 January 2009 at 6:46am | IP Logged
|
|
|
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 |
|
|