AXSoft SMTPSock - InvalidRecipient

Description

Occurs when the server returns an error when the an invalid recipient is specified.

Type

Event

Syntax

object_InvalidRecipient(EmailAddress As String, ServerResponse As String, Reset As Boolean)

Parameter Type Description
EmailAddress String The invalid email address
ServerResponse String The response sent by the server
Reset Boolean Boolean variable requesting whether the email transfer should be reset.
Return Type

None

Remarks

If the server returns an email address an being invalid, then the user will have the option of resetting the email transfer by setting the Reset variable to TRUE. Resetting the email transfer does not disconnect you from the server. It sets a flag so that the user can remove invalid email addresses from the recipient list and resend the email. You can check what the error was by checking the ServerResponse variable. If the email transfer is NOT reset, then the control will resume sending the rest of the recipients and the email.

See Also: SendMail, Error