var request = {
"type" = "mail";
"data" = {
"to" : [ "list_of@emails.com" ], // array of emails, optional
"cc" : [ "list_of_cc@emails.com" ], // array of emails, optional
"attach" : [ "/list/of/file/paths" ], // array of file paths to attach, optional
"subject": "subject of this email", // email subject text, optional
"body" : "body of the email ", // body text, optional
};
bridge.sendRequest(request, function (results) {
console.log('Javascript got its response: ' + str(results));
});
|