Email Notification Script – quick reference

On your notification you can call mail scripts using this format:

${mail_script:script_name}

Mail script API examples

  • template.print(“Hello”); //prints hello to the email body.
  • email.addAddress(type, emailAddress, DisplayName); //type can be cc or bcc.
  • email.setFrom(emailAddress); //override the sender email address.
  • email.setReplyTo(emailAddress); //override the reply to address.
  • email.setSubject(String“); // override the subject of the message.
  • email.setBody("String"); // override the body of the message.

(Note: You can also use most server-side scripts here, such as GlideRecord)

Documentation

Latest Posts