qie.newEmailAttachmentMap¶
Signature: qie.newEmailAttachmentMap()
Returns: Map<String, byte[]> attachmentMap - a new empty Java Map<String,byte[]> instance
Returns a new emailAttachmentMap instance to be used when calling qie.sendEmail()
Note
See this KB article for examples on how to include attachments.
Parameters¶
None
Example¶
// Define the email details
var to = "support@qvera.com,awesomesupport@qvera.com";
var subject = "Monthly Report";
var body = "Dear Team,\n" +
"Please find attached the monthly report.\n\n" +
"Best regards,\nQIE Admin";
// Create an attachment map
var attachmentMap = qie.newEmailAttachmentMap();
attachmentMap.put("Report.pdf", qie.readFileBytes("/tmp/test.pdf"));
// Send the email, error handling ommitted for brevity
qie.sendEmail(to, subject, body, attachmentMap);