Create new instance.
Array of email addresses to use as BCC:
recipients.
Body text of the mail message. Can be plain text or HTML if the isBodyHTML
property is set to true
.
Array of email addresses to use as CC:
recipients.
whether to treat the body string and plain text or HTML. When set to true
, the body
property should be set to full valid HTML.
Indicates if the message object has already been sent.
If true
, the mail will be sent in the background using a web service rather than via Mail.app - but will come from drafts5@drafts5.agiletortoise.com
. Defaults to false
.
One of the following values:
send()
has been called.Subject line
Array of email addresses to use as To:
recipients.
Send the mail message. This will open the Mail.app
sending window. Returns true
if the message was sent successfully or false
if not - if, for example, the user cancelled the mail window.
Create Mail
object
Generated using TypeDoc
Mail
The Mail object can be used to create and send mail messages, similar to those created by a "Mail" action step.
Example
var mail = Mail.create(); mail.toRecipients = ["joe@sample.com"]; mail.subject = "My test message"; mail.body = "Body text"; var success = mail.send(); if (!success) { console.log(mail.status); context.fail(); }