SSLSpecificError Property


Contains SSL error code from Windows API.

This property is set if SSLError returned code 31 (Specific error).


Value Type: Long
Parameters: None 
Remarks: This property is read-only

Usage example:

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

' Set SSL connection over STARTTLS command
Mailer.SSL.Enabled = True
Mailer.SSL.UseStartTLS = True

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
    If Mailer.SSL.SSLError = 31 Then
      MsgBox "WinAPI Error code: " & Mailer.SSL.SSLSpecificError
    End If
  Else
    MsgBox Mailer.ErrDesc
  End If
End If

See Also:

SSLError Property


Copyright © 2002-2022, AfterLogic Corporation. All rights reserved.