ServerCert Property


Contains information regarding the mail server's certificate.

This property contains valid information only if the connection is already established.

When SSL-enabled object (SMTP, POP3 or IMAP4) connects to the mail server, it receives the server's certificate and places its information in ServerCert property. Also, if VerifyServerCert=True, MailBee verifies whether the server's certificate is trusted. If it is, connection procedure normally continues. If it is not, the connection is aborted.


Value Type: MailBee.CertInfo
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"
If Mailer.Connect Then
  ' display name of the authority which issued the certificate to the server
  MsgBox Mailer.SSL.ServerCert.IssuedBy
Else
  MsgBox Mailer.ErrDesc
End If

See Also:

CertInfo Object

VerifyServerCert Property

SelectServerCertStore Method


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