XtraReport.ExportToMail(MailMessageExportOptions, String, String, String) Method
Exports a report to HTML and inserts it into a specified e-mail message.
Namespace: DevExpress.XtraReports.UI
Assembly: DevExpress.XtraReports.v24.1.dll
NuGet Package: DevExpress.Reporting.Core
Declaration
public MailMessage ExportToMail(
MailMessageExportOptions options,
string from,
string to,
string subject
)
Parameters
Name | Type | Description |
---|---|---|
options | MailMessageExportOptions | The mail message export options. |
from | String | The message sender. |
to | String | A comma-separated list of recipients. |
subject | String | The e-mail subject. |
Returns
Type | Description |
---|---|
MailMessage | The exported e-mail message. |
Remarks
Once the document export has started, it will run until the resulting document is complete and cannot be interrupted or canceled in the process.
Use the ExportToMailAsync(MailMessageExportOptions, String, String, String, CancellationToken) method instead of ExportToMail to export a report asynchronously in a separate task.
See Also