Share:
Developers » Script Objects & Methods » ScriptMessage

PREVIOUS  |  NEXT

ScriptMessage


The following table lists the available methods for the ScriptMessage object:

Return TypeMethodExplanation
String getBody()Gets the body of the email message 
String getFrom()Gets the sender of the email message 
StringgetSubject()Gets the subject of the email message 
Void addRecipient(String email)Adds the email address into message's To field
Void addRecipient(ScriptUser user)Adds the user's email address into the message's To field
Void addRecipient(ScriptContact contact)Adds the contact's email address into the message's To field 
Void addCC(String email)Adds the email address into message's CC field 
Void addCC(ScriptUser user)Adds the user's email address into message's CC field
Void
addCC(ScriptContact contact)Adds the contact's email address into message's CC field 
Void
addBCC(String email)Adds the email address into message's BCC field
Void
addBCC(ScriptUser user)Adds the user's email address into the message's BCC field 
Void
addBCC(ScriptContact contact)Adds the contact's email address into the message's BCC field 
VoidaddAttachment(ScriptAttachment attachment)Adds the attachment to the email message that will send
VoidaddTemplateContext(ScriptCase caze) Sets caze to email template context
VoidsetBody(String body)Sets the String to be the body of the email message
VoidsetFrom(String from)Sets the sender of the email message
VoidsetSubject(String subject)Sets the subject of the email message
VoidsetTemplate(String systemId)Sets the template that will define the subject, sender, and body in the email message