Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: Server with/without TLS/SSL Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
dominiopt
Newbie
Newbie


Joined: 18 November 2008
Online Status: Offline
Posts: 7
Posted: 19 November 2008 at 9:43am | IP Logged Quote dominiopt

Your samples VB SMTP Demo 1/2 and SSL Demo are really clear. However the most common situation it was server have/or not SSL connection (i will use a checkbox to do this) the problem it was integrate the SMTP Demo code with SSL Demo code because the object definition and structure in both samples are completely different. Any other sample (who fits this purpose available)?

Thanks
Fernando
Back to Top View dominiopt's Profile Search for other posts by dominiopt
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 19 November 2008 at 10:05am | IP Logged Quote Alex

To make SMTP demos work in SSL mode, you should add a line or two after "mailer.SmtpServers.Add" statement. For instance, to enable STARTTLS connections:

Code:
mailer.SmtpServers(0).SslMode = SslStartupMode.UseStartTls


For connections to dedicated SSL port (usually 465), it will be:

Code:
mailer.SmtpServers(0).SslMode = SslStartupMode.OnConnect
mailer.SmtpServers(0).Port = 465


Also, make sure to add "Imports MailBee.Security" directive in the header of the file.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
dominiopt
Newbie
Newbie


Joined: 18 November 2008
Online Status: Offline
Posts: 7
Posted: 19 November 2008 at 11:09am | IP Logged Quote dominiopt

Thanks Alex but really i didn't understand your answer, i'am using oSMTP and oSSL objects.

My main dough it was if this step it´s enough to user enable/disable SSLserver communication

If SSLserver then
Set oSMTP.SSL = oSSL
If PORT25 then oSMTP.SSL.UseStartTLS = True
If PORT465 then oSMTP.SSL.UseStartTLS = False
End If
Back to Top View dominiopt's Profile Search for other posts by dominiopt
 
dominiopt
Newbie
Newbie


Joined: 18 November 2008
Online Status: Offline
Posts: 7
Posted: 19 November 2008 at 1:56pm | IP Logged Quote dominiopt

Solved thanks
Back to Top View dominiopt's Profile Search for other posts by dominiopt
 

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