mail_save_outgoing_message()
Usage
mail_save_outgoing_message(boolean)
Description
Configures the Advanced Mail Module that the next invocation of mail_send()
should save the outgoing email as an EMailMessage object.
Configured attachments are copied and attached to the EMailMessage object. For attached dynamic files the evaluated result is saved as a static file.
After the mail_send()
command is finished, the outgoing message can be accessed via mail_get_last_outgoing_message()
.
Example
${mail_save_outgoing_message(true)}