public event SmtpMergingMessageEventHandler MergingMessage
Public Event MergingMessage As SmtpMergingMessageEventHandler
This event precedes any other Smtp events which occur for every e-mail message being sent. , however, is not raised for the e-mails which were supplied by the application rather than generated during mail merge.
For mail merge jobs, this event allows the developer to control whether to proceed mail merge of a particular data row with the template and send the resulting e-mail or skip this data row and continue.
If you need to perform some post-processing of mail messages which have already been merged (i.e. an event which occurs AFTER mail merge of a data row with the template), use SendingMessage event (if you're sending e-mails out) or SubmittingMessageToPickupFolder event (if you're submitting them to the pickup folder).