A newer version of this page is available. Switch to the current version.

PrintingSystemBase.ExportToMail(MailMessageExportOptions, String, String, String) Method

Exports a document to HTML and then inserts it into a specified e-mail.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v18.2.Core.dll


public MailMessage ExportToMail(
    MailMessageExportOptions options,
    string from,
    string to,
    string subject
Public Function ExportToMail(
    options As MailMessageExportOptions,
    from As String,
    to As String,
    subject As String
) As MailMessage


Name Type Description
options MailMessageExportOptions

A MailMessageExportOptions object.

from String

A String value, specifying the sender.

to String

A String value, specifying a comma-separated list of recipients.

subject String

A String value, specifying the e-mail subject.


Type Description

A MailMessage object.


Once the document export has started, it will run until the resulting document is complete and cannot be interrupted or canceled in the process.

See Also