Description
-
Fires when relaying encounters unrecoverable error.
Syntax
-
Private Sub
object_RelayError(Relay,
ErrorCode, ErrorText)
The RelayError Event syntax has these parts:
object |
A wodSmtpServer
object. |
Relay |
A SmtpRelay object.
Reference to the relay that had errors. |
ErrorCode |
A Long value. Value
of error that occurred. |
ErrorText |
A String value. Text
description of the error. |
Remarks
-
RelayError is fired when wodSmtpServer is unable to
relay specific email, and has to stop relaying (only that
instance of relay) until you decide what to do.
ErrorCode and ErrorText arguments will provide information on
why relaying was not successful. You can now try to
manually send the message, or provide additional
information for the message (such as, to change Hostname,
MailTo
property etc..) and then just Retry the
relay.
You can determine using Relay.Enabled
property if relay will try to deliver the message again
automatically.
|