composeEmail
Shows the email compose Dialog, or sends an email without an interface popup.
Last updated
Shows the email compose Dialog, or sends an email without an interface popup.
Last updated
composeEmail({
text: `This is the messsage text and this is a link: <a href='http://www.brixxbox.net' target='_blank'>www.brixxbox.net</a>`,
to:["john.doe@acme.com", "jane.doe@acme.com"],
subject: "This is the mail subject",
from: "noreply@acme.com"
}); composeEmail({
text: "This is the messsage text",
to:["john.doe@acme.com", "jane.doe@acme.com"],
subject: "This is the mail subject",
from: "noreply@acme.com",
replyTo: "reply@acmy.com",
autoSend: true //Set this to avoid the dialog
}); composeEmail({
text: "This is the messsage text",
to:["john.doe@acme.com", "jane.doe@acme.com"],
subject: "This is the mail subject",
from: "noreply@acme.com",
autoSend: true,
attachmentBlobs: [
{
name: "Test1.pdf",
blob: app.createReport("report")
},
{
name: "Test2.pdf",
blob: app.getAttachmentById(2)
}
],
}); composeEmail({
text: "This is the messsage text",
to:["john.doe@acme.com", "jane.doe@acme.com"],
subject: "This is the mail subject",
from: "noreply@acme.com",
autoSend: true,
attachmentIds: [1, 2, 3]
});