Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
heading
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
0multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

sendEmail([from], to, [cc], subject, body_or_template, [language]

Package

Alias

Pkg Usage

...

Here is the same example that includes adding attachments to the email. This requires the use of the JEmailAttachment structure type.

Code Block
JEmailMessage email;
email.to = {"testJiraUser1", "testEmail@cprime.com", "testJiraUser2"};
email.subject = "Email to Santa";
email.message = "Dear Santa, I want a train.";

for(string a in attach) {  
    JEmailAttachment att;
    att.name = a;
    att.file = getAttachmentPath(key, a);
    email.attachments += att;
}

sendEmail(email);

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "system_routine" and space = currentSpace ( )
labelsarray_routines