SSL Property


Specifies the SSL object that will be used for managing secure SSL/TLS connections.

If this property is specified, SMTP object will operate in secure mode through SSL or TLS connection.

Note: Many mail servers do not support secure connections.


Value Type: MailBee.SSL
Parameters: None 

Usage example:

Dim Mailer, SSL, Messages, MessageHeader
'Using visual basic to create object
Set Mailer = CreateObject("MailBee.POP3")
Set SSL = CreateObject("MailBee.SSL")
'Using ASP to create object
'Set Mailer = Server.CreateObject("MailBee.POP3")
'Set SSL = Server.CreateObject("MailBee.SSL")
'In ASP use Response.Write instead of MsgBox
Mailer.EnableLogging = True
Mailer.LogFilePath = "C:\smtp_log.txt"
Mailer.ClearLog
Mailer.LicenseKey = "put your license key here"

' Set SSL connection over dedicated port
SSL.LicenseKey = "put your SSL or trial license key here"
Set Mailer.SSL = SSL
Mailer.PortNumber = 995

Mailer.ServerName = "mail.server.com"
Mailer.UserName = "username"
Mailer.Pasword = "password"
If Mailer.Connect Then
  Set Messages = Mailer.RetrieveHeaders
  For Each MessageHeader In Messages
    MsgBox MessageHeader.Subject
  Next
  Mailer.Disconnect
Else
  MsgBox Mailer.ErrDesc
End If

See Also:

SSL Object


Copyright 2002-2008, AfterLogic Corporation. All rights reserved.