Protocol Property
Specifies security protocol to be used.
By default, most secure available protocol is used (currently TLS). This property
allows you to override default setting. Allowed values (from least secure to most
secure) are:
| Value Type: | Long | |
| Parameters: | None | |
Usage example:
Dim Mailer, SSL 'Using visual basic to create object Set Mailer = CreateObject("MailBee.SMTP") Set SSL = CreateObject("MailBee.SSL") 'Using ASP to create object 'Set Mailer = Server.CreateObject("MailBee.SMTP") '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 STARTTLS command SSL.LicenseKey = "put your SSL or trial license key here" Set Mailer.SSL = SSL Mailer.SSL.UseStartTLS = True Mailer.SSL.Protocol = 2 ' Force SSL 2 Mailer.ServerName = "mail.server.com" Mailer.Message.ToAddr = "bill@yoursite.com" Mailer.Message.FromAddr = "joe@mysite.com" Mailer.Message.Subject = "Hello" Mailer.Message.BodyText = "Body" If Mailer.Connect Then Mailer.Send Mailer.Disconnect Else If Mailer.ErrCode = 12 Then MsgBox "SSL Error #" & Mailer.SSL.SSLError Else MsgBox Mailer.ErrDesc End If End If
See Also:
Copyright 2002-2008, AfterLogic Corporation. All rights reserved.