SmtpMergingMessage Event
Occurs when the component is about to merge the e-mail template with a single data table row.

Namespace: MailBee.SmtpMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public event SmtpMergingMessageEventHandler MergingMessage

Value

Type: MailBee.SmtpMailSmtpMergingMessageEventHandler
Remarks

This event precedes any other Smtp events which occur for every e-mail message being sent. MergingMessage, 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).

Examples
The example is available at SubmitJobsToPickupFolder(String, Boolean) topic.
See Also