Table Head (thead) |
---|
Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Details |
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns a byte array with the content of this attachment. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var logo = plugins.mail.createBinaryAttachment('logo.jpg', plugins.file.readFile('d:/logo.jpg'));
var invoice = plugins.mail.createTextAttachment('invoice.txt', plugins.file.readTXTFile('d:/invoice.txt'));
var attachments = new Array(logo, invoice);
var success = plugins.mail.sendMail(toAddress, fromAddress, 'subject line', 'message text', null, null, attachments, properties);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert', 'Failed to send mail', 'OK');
}
else
{
plugins.dialogs.showInfoDialog('Success', 'Mail sent', 'OK');
application.output('logo attachment name: ' + logo.getName());
application.output('logo attachment mime type: ' + logo.getMimeType());
application.output('logo attachment size: ' + logo.getData().length);
application.output('logo attachment embedded state: ' + logo.isEmbedded());
application.output('invoice attachment name: ' + invoice.getName());
application.output('invoice attachment mime type: ' + invoice.getMimeType());
application.output('invoice attachment size: ' + invoice.getData().length);
application.output('invoice attachment embedded state: ' + invoice.isEmbedded());
} |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getMimeType |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the Mime type of this attachment. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var logo = plugins.mail.createBinaryAttachment('logo.jpg', plugins.file.readFile('d:/logo.jpg'));
var invoice = plugins.mail.createTextAttachment('invoice.txt', plugins.file.readTXTFile('d:/invoice.txt'));
var attachments = new Array(logo, invoice);
var success = plugins.mail.sendMail(toAddress, fromAddress, 'subject line', 'message text', null, null, attachments, properties);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert', 'Failed to send mail', 'OK');
}
else
{
plugins.dialogs.showInfoDialog('Success', 'Mail sent', 'OK');
application.output(' |
|
|
|
| invoicelogo attachment name: ' + |
|
|
|
| invoicelogo.getName());
application.output(' |
|
|
|
| invoicelogo attachment mime type: ' + |
|
|
|
| invoicelogo.getMimeType());
application.output(' |
|
|
|
| invoicelogo attachment size: ' + |
|
|
|
| invoicelogo.getData().length);
application.output(' |
|
|
|
| invoicelogo attachment embedded state: ' + |
|
|
|
| invoice}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=2C33AA4B-4B4D-4EFF-AA36-884C72DE7B93}{tr:id=name}{td}h6.getMimeType{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getMimeType{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:2C33AA4B-4B4D-4EFF-AA36-884C72DE7B93_des|text=|trigger=button}{sub-section}{sub-section:2C33AA4B-4B4D-4EFF-AA36-884C72DE7B93_des|trigger=none|class=sIndent}Returns the Mime type of this attachment.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:2C33AA4B-4B4D-4EFF-AA36-884C72DE7B93_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2C33AA4B-4B4D-4EFF-AA36-884C72DE7B93_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:2C33AA4B-4B4D-4EFF-AA36-884C72DE7B93_ret|text=|trigger=button}{sub-section}{sub-section:2C33AA4B-4B4D-4EFF-AA36-884C72DE7B93_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2C33AA4B-4B4D-4EFF-AA36-884C72DE7B93_see|text=|trigger=button}{sub-section}{sub-section:2C33AA4B-4B4D-4EFF-AA36-884C72DE7B93_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2C33AA4B-4B4D-4EFF-AA36-884C72DE7B93_see|text=|trigger=button}{sub-section}{sub-section:2C33AA4B-4B4D-4EFF-AA36-884C72DE7B93_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2C33AA4B-4B4D-4EFF-AA36-884C72DE7B93_sam|text=|trigger=button}{sub-section}{sub-section:2C33AA4B-4B4D-4EFF-AA36-884C72DE7B93_sam|class=sIndent|trigger=none}{code:language=javascript}
var logo = plugins.mail.createBinaryAttachment('logo.jpg', plugins.file.readFile('d:/logo.jpg'));
var invoice = plugins.mail.createTextAttachment('invoice.txt', plugins.file.readTXTFile('d:/invoice.txt'));
var attachments = new Array(logo, invoice);
var success = plugins.mail.sendMail(toAddress, fromAddress, 'subject line', 'message text', null, null, attachments, properties);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert', 'Failed to send mail', 'OK');
}
else
{
plugins.dialogs.showInfoDialog('Success', 'Mail sent', 'OK');
application.output('logo attachment name: ' + logo.getName());
application.output('logo attachment mime type: ' + logo.getMimeType());
application.output('logo attachment size: ' + logo.getData().length);
application.output('logo attachment embedded state: ' + logo.isEmbedded());
application.output('invoice attachment name: ' + invoice.getName());
application.output('invoice attachment mime type: ' + invoice.getMimeType());
application.output('invoice attachment size: ' + invoice.getData().length);
application.output('invoice attachment embedded state: ' + invoice.isEmbedded());
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DA57DC04-30AC-44B0-A6E8-4FEA071B965A}{tr:id=name}{td}h6.getName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:DA57DC04-30AC-44B0-A6E8-4FEA071B965A_des|text=|trigger=button}{sub-section}{sub-section:DA57DC04-30AC-44B0-A6E8-4FEA071B965A_des|trigger=none|class=sIndent}Returns the name of this attachment.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DA57DC04-30AC-44B0-A6E8-4FEA071B965A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DA57DC04-30AC-44B0-A6E8-4FEA071B965A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DA57DC04-30AC-44B0-A6E8-4FEA071B965A_ret|text=|trigger=button}{sub-section}{sub-section:DA57DC04-30AC-44B0-A6E8-4FEA071B965A_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DA57DC04-30AC-44B0-A6E8-4FEA071B965A_see|text=|trigger=button}{sub-section}{sub-section:DA57DC04-30AC-44B0-A6E8-4FEA071B965A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DA57DC04-30AC-44B0-A6E8-4FEA071B965A_see|text=|trigger=button}{sub-section}{sub-section:DA57DC04-30AC-44B0-A6E8-4FEA071B965A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DA57DC04-30AC-44B0-A6E8-4FEA071B965A_sam|text=|trigger=button}{sub-section}{sub-section:DA57DC04-30AC-44B0-A6E8-4FEA071B965A_sam|class=sIndent|trigger=none}{code:language=javascript}
var logo = plugins.mail.createBinaryAttachment('logo.jpg', plugins.file.readFile('d:/logo.jpg'));
var invoice = plugins.mail.createTextAttachment('invoice.txt', plugins.file.readTXTFile('d:/invoice.txt'));
var attachments = new Array(logo, invoice);
var success = plugins.mail.sendMail(toAddress, fromAddress, 'subject line', 'message text', null, null, attachments, properties);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert', 'Failed to send mail', 'OK');
}
else
{
plugins.dialogs.showInfoDialog('Success', 'Mail sent', 'OK');
application.output('logo attachment name: ' + logo.getName());
application.output('logo attachment mime type: ' + logo.getMimeType());
application.output('logo attachment size: ' + logo.getData().length);
application.output('logo attachment embedded state: ' + logo.isEmbedded());
application.output('invoice attachment name: ' + invoice.getName());
application.output('invoice attachment mime type: ' + invoice.getMimeType());
application.output('invoice attachment size: ' + invoice.getData().length);
application.output('invoice attachment embedded state: ' + invoice.isEmbedded());
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F9794B08-6732-4774-9C43-E7ED2DFCC6DD}{tr:id=name}{td}h6.isEmbedded{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}isEmbedded{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:F9794B08-6732-4774-9C43-E7ED2DFCC6DD_des|text=|trigger=button}{sub-section}{sub-section:F9794B08-6732-4774-9C43-E7ED2DFCC6DD_des|trigger=none|class=sIndent}Returns true if this attachment is embedded, false otherwise. Attachments become embedded if they are references through tags from the body text of the message.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:F9794B08-6732-4774-9C43-E7ED2DFCC6DD_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F9794B08-6732-4774-9C43-E7ED2DFCC6DD_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F9794B08-6732-4774-9C43-E7ED2DFCC6DD_ret|text=|trigger=button}{sub-section}{sub-section:F9794B08-6732-4774-9C43-E7ED2DFCC6DD_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F9794B08-6732-4774-9C43-E7ED2DFCC6DD_see|text=|trigger=button}{sub-section}{sub-section:F9794B08-6732-4774-9C43-E7ED2DFCC6DD_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F9794B08-6732-4774-9C43-E7ED2DFCC6DD_see|text=|trigger=button}{sub-section}{sub-section:F9794B08-6732-4774-9C43-E7ED2DFCC6DD_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F9794B08-6732-4774-9C43-E7ED2DFCC6DD_sam|text=|trigger=button}{sub-section}{sub-section:F9794B08-6732-4774-9C43-E7ED2DFCC6DD_sam|class=sIndent|trigger=none}{code:language=javascript}
application.output('invoice attachment name: ' + invoice.getName());
application.output('invoice attachment mime type: ' + invoice.getMimeType());
application.output('invoice attachment size: ' + invoice.getData().length);
application.output('invoice attachment embedded state: ' + invoice.isEmbedded());
} |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the name of this attachment. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var logo = plugins.mail.createBinaryAttachment('logo.jpg', plugins.file.readFile('d:/logo.jpg'));
var invoice = plugins.mail.createTextAttachment('invoice.txt', plugins.file.readTXTFile('d:/invoice.txt'));
var attachments = new Array(logo, invoice);
var success = plugins.mail.sendMail(toAddress, fromAddress, 'subject line', 'message text', null, null, attachments, properties);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert', 'Failed to send mail', 'OK');
}
else
{
plugins.dialogs.showInfoDialog('Success', 'Mail sent', 'OK');
application.output('logo attachment name: ' + logo.getName());
application.output('logo attachment mime type: ' + logo.getMimeType());
application.output('logo attachment size: ' + logo.getData().length);
application.output('logo attachment embedded state: ' + logo.isEmbedded());
application.output('invoice attachment name: ' + invoice.getName());
application.output('invoice attachment mime type: ' + invoice.getMimeType());
application.output('invoice attachment size: ' + invoice.getData().length);
application.output('invoice attachment embedded state: ' + invoice.isEmbedded());
} |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
isEmbedded |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns true if this attachment is embedded, false otherwise. Attachments become embedded if they are references through tags from the body text of the message. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var logo = plugins.mail.createBinaryAttachment('logo.jpg', plugins.file.readFile('d:/logo.jpg'));
var invoice = plugins.mail.createTextAttachment('invoice.txt', plugins.file.readTXTFile('d:/invoice.txt'));
var attachments = new Array(logo, invoice);
var success = plugins.mail.sendMail(toAddress, fromAddress, 'subject line', 'message text', null, null, attachments, properties);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert', 'Failed to send mail', 'OK');
}
else
{
plugins.dialogs.showInfoDialog('Success', 'Mail sent', 'OK');
application.output('logo attachment name: ' + logo.getName());
application.output('logo attachment mime type: ' + logo.getMimeType());
application.output('logo attachment size: ' + logo.getData().length);
application.output('logo attachment embedded state: ' + logo.isEmbedded());
application.output('invoice attachment name: ' + invoice.getName());
application.output('invoice attachment mime type: ' + invoice.getMimeType());
application.output('invoice attachment size: ' + invoice.getData().length);
application.output('invoice attachment embedded state: ' + invoice.isEmbedded());
} |
|
|
|
|
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table} |