MailBee.NET Objects 4.0

SendMailJob.Message Property

Gets a reference to the mail message object to be sent or merged.

public MailBee.Mime.MailMessage Message {get;}

Property Value

A reference to the mail message object (if the job consists of sending a single e-mail message, not mail merge) or a template e-mail for mail merge.

Remarks

If the job is of sending a single e-mail message supplied by the application, Message refers to the mail message object to be sent. If the job is a mail merge job, Message refers to the template which will be merged (or, for finished jobs, was already merged) with data table rows.

For mail merge jobs, the developer can use MergedMessage property to get the result of mail merge of the template with a data row. However, MailBee does not keep merged messages in finished jobs to avoid memory overhead (unless AddJob method was called with keepMergedData set to true).

See Also

SendMailJob Class | MailBee.SmtpMail Namespace | MergedMessage