Drafts Scripting Reference

Message

The Message object can be used to create and send mail iMessages, similar to those created by a “Message” action step.

Properties

Functions

Class Functions

Examples

var msg = Message.create();
msg.toRecipients = ["joe@sample.com"];
msg.subject = "My test message";
msg.body = "Body text";

var success = msg.send();