SendCasePrintMail
This function sends a Case print in an email
Syntax
SendCasePrintMail("recipient", "subject", "text", "headers", "signatures", "attachments", "history");
SendCasePrintMail("recipient", "subject", "text", "headers", "signatures", "attachments", "history", "chosenSection");
SendCasePrintMail("recipient", "subject", "text", "headers", "signatures", "attachments", "history", "chosenSection", "sender");
SendCasePrintMail("recipient", "subject", "text", "headers", "signatures", "attachments", "history", "chosenSection", "sender", "replayTo", "footer");
SendCasePrintMail("recipient", "subject", "text", "headers", "signatures", "attachments", "history", "chosenSection", "sender", "replayTo", "footer", "addCaseIdToSubject");
Function arguments
- recipient – (String) Raw email address or AMODIT username
- subject – (String) Email subject, leave empty for default – Case title
- text – (String) Custom message to include before the Case print
- headers – (Boolean) Include case headers
- signatures – (Boolean) Include case signatures
- attachments – (Boolean) Include case attachments
- history – (Boolean) Include case history
- chosenSection – (String) [Optional] Specify section to print, if empty, entire case will be printed
- sender – (String) [Optional] Specify custom sender’s address
- replayTo – (String) [Optional] Specify replay to addres
- footer – (String) [Optional] Include mail footer
- addCaseIdToSubject – (Boolean) [Optional] Add caseid to mail subject and headers (default true), if false then response to this mail will not be attach as comment to current case
Return value
This function returns Boolean.
Returns true if mail was send successfully, false otherwise.
Examples
Example 1:
This will send case print to 'r.simmons’, with case title as mail subject, no additonal message in body and with headers, signatures, attachments and history included
SendCasePrintEmail("r.simmons","","", true, true, true, true);
Example 2:
This will send case print of 'Finance’ section to 'external@company.com’, with title 'Finance’, additonal message 'finance only’ in body and with headers, signatures, attachments and history included
SendCasePrintEmail("external@company.com","Finance","finance only", true, true, true, true, "finance");
Example 3:
This will send case print to 'r.simmons’, with case title as mail subject, no additonal message in body and with headers, signatures, attachments and history included. Sender will be set as 'sendermail@mail.com’.
SendCasePrintEmail("r.simmons","","", true, true, true, true, "sendermail@mail.com");
Example 4:
This will send case print to 'r.simmons’, with case title as mail subject, no additonal message in body and with headers, signatures, attachments, history and footer included. Mail subject will not contains caseid (reply will not be added as comment to current case).
SendCasePrintEmail("r.simmons","","", true, true, true, true, "","",true,false);