Send email options for DML operations carried out in Apex code.
|Knowledge Article Number||000006605|
DmlOptions Email handler class can be used to set email options for the dml operations performed in the apex code.
Even though auto-sent emails can be triggered by actions in the Salesforce user interface, the DMLOptions settings foremailHeader take effect only for DML operations carried out in Apex code.
Database.DMLOptions dlo = new Database.DMLOptions();
The following are properties for DmlOptions.EmailHeader.
For more information on DMLOptions, please see the following document: