Author |
|
dominiopt Newbie
Joined: 18 November 2008
Online Status: Offline Posts: 7
|
Posted: 19 November 2008 at 9:43am | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 19 November 2008 at 10:05am | IP Logged
|
|
|
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 |
|
|
dominiopt Newbie
Joined: 18 November 2008
Online Status: Offline Posts: 7
|
Posted: 19 November 2008 at 11:09am | IP Logged
|
|
|
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 |
|
|
dominiopt Newbie
Joined: 18 November 2008
Online Status: Offline Posts: 7
|
Posted: 19 November 2008 at 1:56pm | IP Logged
|
|
|
Solved thanks
|
Back to Top |
|
|