You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

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)}

Search results for "mail_save_outgoing_message()"

mail_save_outgoing_message()

Configures the Advanced Mail Module that the next invocation of mail_send() should save the outgoing email as an EMailMessage node.
Configured attachments are copied and attached to the EMailMessage node. 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().

mail_save_outgoing_message(boolean)