SendMailJobMergedMessage Property
Gets a reference to the mail message produced as a result of mail merge of the template with a data row.

Namespace: MailBee.SmtpMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public MailMessage MergedMessage { get; }

Property Value

Type: MailMessage
A reference to the mail message produced as a result of mail merge of the template with a single data table row, or a null reference (Nothing in Visual Basic) if this job is not a mail merge job or if the merged message is no longer needed.
Remarks

In most cases, this property returns null because the merged message is not yet available before the job goes into processing, and is no longer available once the job is finished (MailBee removes merged message object from memory to avoid having MailMessage objects for every data row in memory simultaneously).

However, the developer may prevent automatic disposing of MailMessage objects created during mail merge: to put the mail merge job into pending list, call AddJob(String, String, EmailAddressCollection, DataTable, Object, Boolean, Boolean) method with keepMergedData set to true.

See Also