Certain variables are available when processing mail_script scripts.

For examples of mail scripts, see Example scripting for email notifications.