A SmtpRelay object.
Holds reference to relay that uses SSL encryption.
Cert
An ICertificate
object. Reference to the certificate received from the
server.
ErrorCode
A Long value.
Error that occured during certificate validation,
if any.
ErrorText
A String value. Text
description of errors found during certificate
validation, one per line.
Accept
A Boolean value. You
should set it to False if you don't want
to accept the certificate.
Remarks
This event fires when Relay establishes SSL encryption
with 3rd party server (only if you set Relay.Security
property to anything other than SecurityNone). You
can test here to see if remote server has a valid
certificate, and if you will proceed with sending the
message.
You should check if ErrorCode
contains error for certificate validation, in which case
ErrorText will hold all errors
found during validation - one per line.
If you will accept the certificate, set Accept argument to True.