Mailing_OnMailStatus

The Mailing_OnMailStatus event occurs when a message is being moved from the Outbox folder to either the Sent or Aborted folder. The Mailing_OnMailStatus event is a good time for you to place some code to update the receiver database. The intrinsic Mail Object will reflect the aborted or sent message.

Syntax

Sub Mailing_OnMailStatus(Status)
. . .
End Sub

Parameters
Status
The message status. It can be one of the following values:
11 = The message was successfully sent
12 = The message was partially sent
13 = The message was aborted
Remarks
The X-Receiver-Status header field contains detailed information about the failure reason.
Example

Sub Mailing_OnMailStatus(Status)
   
If Status = 13 Then
        DisableContactEMail(Mail.Headers("X-Contact-ID"))
    End If
End Sub

Remarks

The Mail Object is only initialized with the mail header; the Contents collection is empty. 
The DataSource object is not available at this point. Direct Database access should be used.



©2001-2015 eMill. All trademarks property of their owners.