Table Head (thead) |
---|
Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Details |
|
|
Table Body (tbody) |
---|
id | createBinaryAttachment-String_byteArray |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createBinaryAttachment |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
| createBinaryAttachment |
Span |
---|
(filename, binarydata) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Creates a binary attachment object. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} filename {byte[]} binarydata |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var attachment1 = plugins.mail.createBinaryAttachment('logo1.gif',plugins.file.readFile('c:/temp/a_logo.gif'));
var attachment2 = plugins.mail.createBinaryAttachment('logo2.gif',plugins.file.readFile('c:/temp/another_logo.gif'));
var success = plugins.mail.sendMail('[email protected]', 'John Cobb <[email protected]>', 'subject', 'msgText',null,null,new Array(attachment1,attachment2));
if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK');
} |
|
|
|
|
Table Body (tbody) |
---|
id | createBinaryAttachment-String_byteArray_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createBinaryAttachment |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
| createBinaryAttachment |
Span |
---|
(filename, binarydata, mimeType) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Creates a binary attachment object. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var attachment1 = plugins.mail.createBinaryAttachment('logo1.gif',plugins.file.readFile('c:/temp/a_logo.gif', 'image/gif'));
var attachment2 = plugins.mail.createBinaryAttachment('logo2.gif',plugins.file.readFile('c:/temp/another_logo.gif', 'image/gif'));
var success = plugins.mail.sendMail('[email protected]', 'John Cobb <[email protected]>', 'subject', 'msgText',null,null,new Array(attachment1,attachment2));
if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK');
} |
|
|
|
|
Table Body (tbody) |
---|
id | createTextAttachment-String_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createTextAttachment |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Creates a text based attachment objec with the default 'text/plain' mimetype |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var attachment = plugins.mail.createTextAttachment('readme.html','<html>bla bla bla');
var success = plugins.mail.sendMail('[email protected]', 'John Cobb <[email protected]>', 'subject', 'msgText',null,null,attachment);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK');
} |
|
|
|
|
Table Body (tbody) |
---|
id | createTextAttachment-String_String_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
createTextAttachment |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(filename, textdata, mimeType) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Creates a text based attachment object. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var attachment = plugins.mail.createTextAttachment('readme.html','<html>bla bla bla', 'text/html');
var success = plugins.mail.sendMail('[email protected]', 'John Cobb <[email protected]>', 'subject', 'msgText',null,null,attachment);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK');
} |
|
|
|
|
Table Body (tbody) |
---|
id | getLastSendMailExceptionMsg |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getLastSendMailExceptionMsg |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
| getLastSendMailExceptionMsg |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Get the exception that occurred in the last sendMail attempt (null if no exception occurred). |
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getMailMessage |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Helper method, returns MailMessage object from binary or 7bits string. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var msg = plugins.mail.getMailMessage(myBlob);
if (msg != null) //if is null error occurred!
{
application.output(msg.getFromAddresses())
} |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getPlainMailAddresses |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
| getPlainMailAddresses |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Helper method to only get the plain addresses. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
|
Table Body (tbody) |
---|
id | isValidEmailAddress-String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
isValidEmailAddress |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Checks whether the given e-mail address is valid or not. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
|
Table Body (tbody) |
---|
id | receiveMail-String_String_Boolean |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
receiveMail |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(username, password, leaveMsgsOnServer) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Receive mails from pop3 account. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var msgs = plugins.mail.receiveMail('mylogin', 'secretpass', true);
if (msgs != null) //if is null error occurred!
{
for (var i = 0 ; i < msgs.length ; i++)
{
var msg = msgs[i]
application.output(msg.getFromAddresses())
application.output(msg.getRecipientAddresses())
application.output(msg.getReplyAddresses())
application.output(msg.getSentDate())
application.output(msg.getHeaders())
application.output(msg.getSubject())
application.output(msg.getHtmlMsg())
application.output(msg.getPlainMsg())
var attachments = msg.getAttachments()
if (attachments != null)
{
for (var j = 0 ; j < attachments.length ; j++)
{
var attachment = attachments[j]
application.output(attachment.getName())
var attachmentDataByteArray = attachment.getData()
//write attachmentDataByteArray to a file...
}
}
}
} |
|
|
|
|
Table Body (tbody) |
---|
id | receiveMail-String_String_Boolean_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
receiveMail |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(username, password, leaveMsgsOnServer, receiveMode) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Receive mails from pop3 account. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var receiveMode = 1;//0=FULL,1=HEADERS_ONLY,2=NO_ATTACHMENTS
var msgs = plugins.mail.receiveMail('mylogin', 'secretpass', true, 0);
if (msgs != null) //if is null error occurred!
{
for (var i = 0 ; i < msgs.length ; i++)
{
var msg = msgs[i]
application.output(msg.getFromAddresses())
application.output(msg.getRecipientAddresses())
application.output(msg.getReplyAddresses())
application.output(msg.getSentDate())
application.output(msg.getHeaders())
application.output(msg.getSubject())
}
} |
|
|
|
|
Table Body (tbody) |
---|
id | receiveMail-String_String_Boolean_Number_Date |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
receiveMail |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(username, password, leaveMsgsOnServer, receiveMode, onlyReceiveMsgWithSentDate) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Receive mails from pop3 account. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| //it is also possible to first receive the headers and later receive a full message with particular 'sentdate'
//var receiveMode = 1;//0=FULL,1=HEADERS_ONLY,2=NO_ATTACHMENTS
var msgs = plugins.mail.receiveMail('mylogin', 'secretpass', true, 0, theSentDateObjectFormPreviousHeaderLoading);
if (msgs != null) //if is null error occurred!
{
for (var i = 0 ; i < msgs.length ; i++)
{
var msg = msgs[i]
application.output(msg.getFromAddresses())
application.output(msg.getRecipientAddresses())
application.output(msg.getReplyAddresses())
application.output(msg.getSentDate())
application.output(msg.getHeaders())
application.output(msg.getSubject())
}
} |
|
|
|
|
Table Body (tbody) |
---|
id | receiveMail-String_String_Boolean_Number_Date_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
receiveMail |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(username, password, leaveMsgsOnServer, receiveMode, onlyReceiveMsgWithSentDate, pop3Host) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Receive mails from pop3 account. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| //it is also possible to first receive the headers and later receive a full message
var receiveMode = 0;//0=FULL,1=HEADERS_ONLY,2=NO_ATTACHMENTS
var pop3Host = 'myserver.com';
var msgs = plugins.mail.receiveMail('mylogin', 'secretpass', true, receiveMode, null, pop3Host);
if (msgs != null) //if is null error occurred!
{
for (var i = 0 ; i < msgs.length ; i++)
{
var msg = msgs[i]
application.output(msg.getFromAddresses())
application.output(msg.getRecipientAddresses())
application.output(msg.getReplyAddresses())
application.output(msg.getSentDate())
application.output(msg.getHeaders())
application.output(msg.getSubject())
application.output(msg.getHtmlMsg())
application.output(msg.getPlainMsg())
var attachments = msg.getAttachments()
if (attachments != null)
{
for (var j = 0 ; j < attachments.length ; j++)
{
var attachment = attachments[j]
application.output(attachment.getName())
var attachmentDataByteArray = attachment.getData()
//write attachmentDataByteArray to a file...
}
}
}
} |
|
|
|
|
Table Body (tbody) |
---|
id | receiveMail-String_String_Boolean_Number_Date_StringArray |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
receiveMail |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(username, password, leaveMsgsOnServer, receiveMode, onlyReceiveMsgWithSentDate, properties) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Receive mails from pop3 account. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var receiveMode = 1;//0=FULL,1=HEADERS_ONLY,2=NO_ATTACHMENTS
var properties = new Array();
properties[0] = 'mail.pop3.port=995';
properties[1] = 'mail.pop3.ssl.enable=true';
properties[2] = 'mail.pop3.host=myserver.com';
properties[3] = '[email protected]';
var msgs = plugins.mail.receiveMail('mylogin', 'secretpass', true, receiveMode, null, properties);
if (msgs != null) //if is null error occurred!
{
for (var i = 0 ; i < msgs.length ; i++)
{
var msg = msgs[i]
application.output(msg.getFromAddresses())
application.output(msg.getRecipientAddresses())
application.output(msg.getReplyAddresses())
application.output(msg.getSentDate())
application.output(msg.getHeaders())
application.output(msg.getSubject())
}
} |
|
|
|
|
Table Body (tbody) |
---|
id | sendBulkMail-String_String_String_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
sendBulkMail |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(to, from, subject, msgText) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Send a bulk mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting). A bulk email makes it possible for one to not receive "out of office" emails back from receiver. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} to - A string containing 1 or multiple addresses seperated by a comma. {String} from - A string containing an address and an optional reply address, seperated by a comma. {String} subject - The subject of the bulk mail {String} msgText - The message text |
|
|
|
Table Body (tbody) |
---|
id | sendBulkMail-String_String_String_String_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
sendBulkMail |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(to, from, subject, msgText, cc) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Send a bulk mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting). A bulk email makes it possible for one to not receive "out of office" emails back from receiver. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} to - A string containing 1 or multiple addresses seperated by a comma. {String} from - A string containing an address and an optional reply address, seperated by a comma. {String} subject - The subject of the bulk mail {String} msgText - The message text {String} cc - One or more addresses seperated by a comma |
|
|
|
Table Body (tbody) |
---|
id | sendBulkMail-String_String_String_String_String_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
sendBulkMail |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(to, from, subject, msgText, cc, bcc) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Send a bulk mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting). A bulk email makes it possible for one to not receive "out of office" emails back from receiver. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} to - A string containing 1 or multiple addresses seperated by a comma. {String} from - A string containing an address and an optional reply address, seperated by a comma. {String} subject - The subject of the bulk mail {String} msgText - The message text {String} cc - One or more addresses seperated by a comma {String} bcc - One or more addresses seperated by a comma |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var msgText = 'plain msg<html>styled html msg<img src="%%embedded%%"></html>';
var success = plugins.mail.sendBulkMail('[email protected],[email protected]', 'John Cobb <[email protected]>', 'subject', msgText,null,'[email protected]');
if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send bulk mail','OK');
} |
|
|
|
|
Table Body (tbody) |
---|
id | sendBulkMail-String_String_String_String_String_String_Attachment |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
sendBulkMail |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(to, from, subject, msgText, cc, bcc, attachment) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Send a bulk mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting). A bulk email makes it possible for one to not receive "out of office" emails back from receiver. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} to - A string containing 1 or multiple addresses seperated by a comma. {String} from - A string containing an address and an optional reply address, seperated by a comma. {String} subject - The subject of the bulk mail {String} msgText - The message text {String} cc - One or more addresses seperated by a comma {String} bcc - One or more addresses seperated by a comma {Attachment} attachment - A single attachment |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var attachment = plugins.mail.createBinaryAttachment('embedded',plugins.file.readFile('c:/temp/a_logo.gif'));
var msgText = 'plain msg<html>styled html msg<img src="%%embedded%%"></html>';
var success = plugins.mail.sendBulkMail('[email protected],[email protected]', 'John Cobb <[email protected]>', 'subject', msgText,null,'[email protected],[email protected]',attachment);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send bulk mail','OK');
} |
|
|
|
|
Table Body (tbody) |
---|
id | sendBulkMail-String_String_String_String_String_String_Attachment_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
sendBulkMail |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(to, from, subject, msgText, cc, bcc, attachment, smtpHost) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Send a bulk mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting). A bulk email makes it possible for one to not receive "out of office" emails back from receiver. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} to - A string containing 1 or multiple addresses seperated by a comma. {String} from - A string containing an address and an optional reply address, seperated by a comma. {String} subject - The subject of the bulk mail {String} msgText - The message text {String} cc - One or more addresses seperated by a comma {String} bcc - One or more addresses seperated by a comma {Attachment} attachment - A single attachment {String} smtpHost - The smtp host |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var attachment = plugins.mail.createBinaryAttachment('embedded',plugins.file.readFile('c:/temp/a_logo.gif'));
var msgText = 'plain msg<html>styled html msg<img src="%%embedded%%"></html>';
var smtphost = 'myserver.com';
var success = plugins.mail.sendBulkMail('[email protected],[email protected]', 'John Cobb <[email protected]>', 'subject', msgText,null,'[email protected]',attachment,smtphost);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send bulk mail','OK');
} |
|
|
|
|
Table Body (tbody) |
---|
id | sendBulkMail-String_String_String_String_String_String_Attachment_StringArray |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
sendBulkMail |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(to, from, subject, msgText, cc, bcc, attachment, overrideProperties) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Send a bulk mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting). A bulk email makes it possible for one to not receive "out of office" emails back from receiver. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} to - A string containing 1 or multiple addresses seperated by a comma. {String} from - A string containing an address and an optional reply address, seperated by a comma. {String} subject - The subject of the bulk mail {String} msgText - The message text {String} cc - One or more addresses seperated by a comma {String} bcc - One or more addresses seperated by a comma {Attachment} attachment - A single attachment {String[]} overrideProperties - An array of properties |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var attachment = plugins.mail.createBinaryAttachment('embedded',plugins.file.readFile('c:/temp/a |
|
|
|
| _logo.gif'));
var attachment2 = plugins.mail.createBinaryAttachment('logo2.gif',plugins.file.readFile('c:/temp/another_logo.gif'));
var success = plugins.mail.sendMail('[email protected]', 'John Cobb <[email protected]>', 'subject', 'msgText',null,null,new Array(attachment1,attachment2if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK');
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=945AA3B8-D30D-4A24-8907-F34C8A458A4C}{tr:id=name}{td}h6.createTextAttachment{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Attachment]{span}{span:id=iets|style=float: left; font-weight: bold;}createTextAttachment{span}{span:id=iets|style=float: left;}\(filename, textdata, mimeType){span}{td}{tr}{tr:id=des}{td}{sub-section:945AA3B8-D30D-4A24-8907-F34C8A458A4C_des|text=|trigger=button}{sub-section}{sub-section:945AA3B8-D30D-4A24-8907-F34C8A458A4C_des|trigger=none|class=sIndent}Creates a text based attachment object.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:945AA3B8-D30D-4A24-8907-F34C8A458A4C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:945AA3B8-D30D-4A24-8907-F34C8A458A4C_prs|trigger=none}filename
textdata
\[mimeType\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:945AA3B8-D30D-4A24-8907-F34C8A458A4C_ret|text=|trigger=button}{sub-section}{sub-section:945AA3B8-D30D-4A24-8907-F34C8A458A4C_ret|trigger=none|class=sIndent}[Attachment]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:945AA3B8-D30D-4A24-8907-F34C8A458A4C_see|text=|trigger=button}{sub-section}{sub-section:945AA3B8-D30D-4A24-8907-F34C8A458A4C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:945AA3B8-D30D-4A24-8907-F34C8A458A4C_see|text=|trigger=button}{sub-section}{sub-section:945AA3B8-D30D-4A24-8907-F34C8A458A4C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:945AA3B8-D30D-4A24-8907-F34C8A458A4C_sam|text=|trigger=button}{sub-section}{sub-section:945AA3B8-D30D-4A24-8907-F34C8A458A4C_sam|class=sIndent|trigger=none}{code:language=javascript}
var attachment = plugins.mail.createTextAttachment('readme.html','<html>bla bla bla', 'text/html');
var success = plugins.mail.sendMail('[email protected]', 'John Cobb <[email protected]>', 'subject', 'msgText',null,null,attachment);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK');
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D81898B6-D880-406A-9E30-10BA41FD858D}{tr:id=name}{td}h6.getLastSendMailExceptionMsg{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getLastSendMailExceptionMsg{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:D81898B6-D880-406A-9E30-10BA41FD858D_des|text=|trigger=button}{sub-section}{sub-section:D81898B6-D880-406A-9E30-10BA41FD858D_des|trigger=none|class=sIndent}Get the exception that occurred in the last sendMail attempt (null if no exception occurred).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:D81898B6-D880-406A-9E30-10BA41FD858D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D81898B6-D880-406A-9E30-10BA41FD858D_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D81898B6-D880-406A-9E30-10BA41FD858D_ret|text=|trigger=button}{sub-section}{sub-section:D81898B6-D880-406A-9E30-10BA41FD858D_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D81898B6-D880-406A-9E30-10BA41FD858D_see|text=|trigger=button}{sub-section}{sub-section:D81898B6-D880-406A-9E30-10BA41FD858D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D81898B6-D880-406A-9E30-10BA41FD858D_see|text=|trigger=button}{sub-section}{sub-section:D81898B6-D880-406A-9E30-10BA41FD858D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D81898B6-D880-406A-9E30-10BA41FD858D_sam|text=|trigger=button}{sub-section}{sub-section:D81898B6-D880-406A-9E30-10BA41FD858D_sam|class=sIndent|trigger=none}{code:language=javascript}var msgText = 'plain msg<html>styled html msg<img src="%%embedded%%"></html>';
//it is possbile to set all kind of smtp properties
var properties = new Array()
properties[0] = 'mail.smtp.host=myserver.com'
// properties specification can be found at:http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html
var success = plugins.mail.sendBulkMail('[email protected],[email protected]', 'John Cobb <[email protected]>', 'subject', msgText,null,'[email protected]',attachment,properties);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send bulk mail','OK');
} |
|
|
|
|
Table Body (tbody) |
---|
id | sendBulkMail-String_String_String_String_String_String_AttachmentArray |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
sendBulkMail |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(to, from, subject, msgText, cc, bcc, attachments) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Send a bulk mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting). A bulk email makes it possible for one to not receive "out of office" emails back from receiver. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} to - A string containing 1 or multiple addresses seperated by a comma. {String} from - A string containing an address and an optional reply address, seperated by a comma. {String} subject - The subject of the bulk mail {String} msgText - The message text {String} cc - One or more addresses seperated by a comma {String} bcc - One or more addresses seperated by a comma {Attachment[]} attachments - The attachments |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var attachment1 = plugins.mail.createBinaryAttachment('embedded',plugins.file.readFile('c:/temp/a_logo.gif'));
var attachment2 = plugins.mail.createTextAttachment('embedded','A text attachement');
var msgText = 'plain msg<html>styled html msg<img src="%%embedded%%"></html>';
var success = plugins.mail.sendBulkMail('[email protected],[email protected]', 'John Cobb <[email protected]>', 'subject', msgText,null,'[email protected],[email protected]',[attachment1,attachment2]);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send bulk mail','OK');
} |
|
|
|
|
Table Body (tbody) |
---|
id | sendBulkMail-String_String_String_String_String_String_AttachmentArray_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
sendBulkMail |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(to, from, subject, msgText, cc, bcc, attachments, smtpHost) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Send a bulk mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting). A bulk email makes it possible for one to not receive "out of office" emails back from receiver. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} to - A string containing 1 or multiple addresses seperated by a comma. {String} from - A string containing an address and an optional reply address, seperated by a comma. {String} subject - The subject of the bulk mail {String} msgText - The message text {String} cc - One or more addresses seperated by a comma {String} bcc - One or more addresses seperated by a comma {Attachment[]} attachments - The attachments {String} smtpHost - The smtp host |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var attachment1 = plugins.mail.createBinaryAttachment('embedded',plugins.file.readFile('c:/temp/a_logo.gif'));
var attachment2 = plugins.mail.createTextAttachment('embedded','A text attachement');
var msgText = 'plain msg<html>styled html msg<img src="%%embedded%%"></html>';
var smtphost = 'myserver.com';
var success = plugins.mail.sendBulkMail('[email protected],[email protected]', 'John Cobb <[email protected]>', 'subject', msgText,null,'[email protected]',[attachment1,attachement2],smtphost);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send bulk mail','OK');
} |
|
|
|
|
Table Body (tbody) |
---|
id | sendBulkMail-String_String_String_String_String_String_AttachmentArray_StringArray |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
sendBulkMail |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(to, from, subject, msgText, cc, bcc, attachments, overrideProperties) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Send a bulk mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting). A bulk email makes it possible for one to not receive "out of office" emails back from receiver. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} to - A string containing 1 or multiple addresses seperated by a comma. {String} from - A string containing an address and an optional reply address, seperated by a comma. {String} subject - The subject of the bulk mail {String} msgText - The message text {String} cc - One or more addresses seperated by a comma {String} bcc - One or more addresses seperated by a comma {Attachment[]} attachments - The attachments {String[]} overrideProperties - An array of properties |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var attachment1 = plugins.mail.createBinaryAttachment('embedded',plugins.file.readFile('c:/temp/a_logo.gif'));
var attachment2 = plugins.mail.createTextAttachment('embedded','A text attachement');
var msgText = 'plain msg<html>styled html msg<img src="%%embedded%%"></html>';
//it is possbile to set all kind of smtp properties
var properties = new Array()
properties[0] = 'mail.smtp.host=myserver.com'
// properties specification can be found at:http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html
var success = plugins.mail. |
|
|
|
| sendMailorg'my message'msgText,null,'[email protected]',[attachment1,attachement2],properties);
if (!success) |
|
|
|
|
{
plugins.dialogs.showWarningDialog('Alert', |
|
|
|
| plugins.mail.getLastSendMailExceptionMsg()'Failed to send bulk mail','OK');
} |
|
|
|
|
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=44C7A24C-1D36-47E3-BB35-1C0FE078CE6B}{tr:id=name}{td}h6.getMailMessage{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[MailMessage]{span}{span:id=iets|style=float: left; font-weight: bold;}getMailMessage{span}{span:id=iets|style=float: left;}\(binaryblob/string){span}{td}{tr}{tr:id=des}{td}{sub-section:44C7A24C-1D36-47E3-BB35-1C0FE078CE6B_des|text=|trigger=button}{sub-section}{sub-section:44C7A24C-1D36-47E3-BB35-1C0FE078CE6B_des|trigger=none|class=sIndent}Helper method, returns MailMessage object from binary or 7bits string.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:44C7A24C-1D36-47E3-BB35-1C0FE078CE6B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:44C7A24C-1D36-47E3-BB35-1C0FE078CE6B_prs|trigger=none}binaryblob/string
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:44C7A24C-1D36-47E3-BB35-1C0FE078CE6B_ret|text=|trigger=button}{sub-section}{sub-section:44C7A24C-1D36-47E3-BB35-1C0FE078CE6B_ret|trigger=none|class=sIndent}[MailMessage]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:44C7A24C-1D36-47E3-BB35-1C0FE078CE6B_see|text=|trigger=button}{sub-section}{sub-section:44C7A24C-1D36-47E3-BB35-1C0FE078CE6B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:44C7A24C-1D36-47E3-BB35-1C0FE078CE6B_see|text=|trigger=button}{sub-section}{sub-section:44C7A24C-1D36-47E3-BB35-1C0FE078CE6B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:44C7A24C-1D36-47E3-BB35-1C0FE078CE6B_sam|text=|trigger=button}{sub-section}{sub-section:44C7A24C-1D36-47E3-BB35-1C0FE078CE6B_sam|class=sIndent|trigger=none}{code:language=javascript}
var msg = plugins.mail.getMailMessage(myColumn);
if (msg != null) //if is null error occurred!
{
application.output(msg.getFromAddresses())
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=39C0F074-AC2B-42F8-85AC-EAFF1077665D}{tr:id=name}{td}h6.getPlainMailAddresses{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getPlainMailAddresses{span}{span:id=iets|style=float: left;}\(addressesString){span}{td}{tr}{tr:id=des}{td}{sub-section:39C0F074-AC2B-42F8-85AC-EAFF1077665D_des|text=|trigger=button}{sub-section}{sub-section:39C0F074-AC2B-42F8-85AC-EAFF1077665D_des|trigger=none|class=sIndent}Helper method to only get the plain addresses.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:39C0F074-AC2B-42F8-85AC-EAFF1077665D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:39C0F074-AC2B-42F8-85AC-EAFF1077665D_prs|trigger=none}addressesString
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:39C0F074-AC2B-42F8-85AC-EAFF1077665D_ret|text=|trigger=button}{sub-section}{sub-section:39C0F074-AC2B-42F8-85AC-EAFF1077665D_ret|trigger=none|class=sIndent}[String]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:39C0F074-AC2B-42F8-85AC-EAFF1077665D_see|text=|trigger=button}{sub-section}{sub-section:39C0F074-AC2B-42F8-85AC-EAFF1077665D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:39C0F074-AC2B-42F8-85AC-EAFF1077665D_see|text=|trigger=button}{sub-section}{sub-section:39C0F074-AC2B-42F8-85AC-EAFF1077665D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:39C0F074-AC2B-42F8-85AC-EAFF1077665D_sam|text=|trigger=button}{sub-section}{sub-section:39C0F074-AC2B-42F8-85AC-EAFF1077665D_sam|class=sIndent|trigger=none}{code:language=javascript}
var plainArray = plugins.mail.getPlainMailAddresses('John Cobb <[email protected]>;Pete Cobb<[email protected]>');
application.output(plainArray[0]) //will return '[email protected]'
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9B868563-3D35-488E-B2C4-DFCFD286495A}{tr:id=name}{td}h6.receiveMail{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[MailMessage]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}receiveMail{span}{span:id=iets|style=float: left;}\(userName, password, leaveMsgsOnServer, receiveMode, onlyreceiveMsgWithSentDate, overridePreferencePOP3Host/properties array){span}{td}{tr}{tr:id=des}{td}{sub-section:9B868563-3D35-488E-B2C4-DFCFD286495A_des|text=|trigger=button}{sub-section}{sub-section:9B868563-3D35-488E-B2C4-DFCFD286495A_des|trigger=none|class=sIndent}Receive mails from pop3 account.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:9B868563-3D35-488E-B2C4-DFCFD286495A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9B868563-3D35-488E-B2C4-DFCFD286495A_prs|trigger=none}userName
password
leaveMsgsOnServer
\[receiveMode\]
\[onlyreceiveMsgWithSentDate\]
\[overridePreferencePOP3Host/properties array\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:9B868563-3D35-488E-B2C4-DFCFD286495A_ret|text=|trigger=button}{sub-section}{sub-section:9B868563-3D35-488E-B2C4-DFCFD286495A_ret|trigger=none|class=sIndent}[MailMessage]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9B868563-3D35-488E-B2C4-DFCFD286495A_see|text=|trigger=button}{sub-section}{sub-section:9B868563-3D35-488E-B2C4-DFCFD286495A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9B868563-3D35-488E-B2C4-DFCFD286495A_see|text=|trigger=button}{sub-section}{sub-section:9B868563-3D35-488E-B2C4-DFCFD286495A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9B868563-3D35-488E-B2C4-DFCFD286495A_sam|text=|trigger=button}{sub-section}{sub-section:9B868563-3D35-488E-B2C4-DFCFD286495A_sam|class=sIndent|trigger=none}{code:language=javascript}
var msgs = plugins.mail.receiveMail('me', 'test', true);
if (msgs != null) //if is null error occurred!
{
for (var i = 0 ; i < msgs.length ; i++)
{
var msg = msgs[i]
application.output(msg.getFromAddresses())
application.output(msg.getRecipientAddresses())
application.output(msg.getReplyAddresses())
application.output(msg.getReceivedDate())
application.output(msg.getSentDate())
application.output(msg.getHeaders())
application.output(msg.getSubject())
application.output(msg.getHtmlMsg())
application.output(msg.getPlainMsg())
var attachments = msg.getAttachments()
if (attachments != null)
{
for (var j = 0 ; j < attachments.length ; j++)
{
var attachment = attachments[j]
application.output(attachment.getName())
var attachmentDataByteArray = attachment.getData()
//write attachmentDataByteArray to a file...
}
}
}
}
//it is also possible to first receive the headers and later receive a full message with particular 'sentdate'
//var receiveMode = 1;//0=FULL,1=HEADERS_ONLY,2=NO_ATTACHMENTS
//var msgs = plugins.mail.receiveMail('me', 'test', true ,receiveMode);
//when first did receive the headers(=all_field+subject,no body and no attachemnt), get a msg with a specific sentdate
//var msgs = plugins.mail.receiveMail('me', 'test', true , 1 , theSentDateObjectFormPreviousHeaderLoading);
//it is possbile to set all kind of pop3 properties
//var properties = new Array()
//properties[0] = 'mail.pop3.host=myserver.com'
//properties specification can be found at:http://java.sun.com/products/javamail/javadocs/com/sun/mail/pop3/package-summary.html
//var msgs = plugins.mail.receiveMail('me', 'test', true , 0 , null, properties);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=2D85EB07-6CA8-4771-A9DA-78701CC23635}{tr:id=name}{td}h6.sendMail{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}sendMail{span}{span:id=iets|style=float: left;}\(to, from, subject, msgText, cc, bcc, attachment/attachments array, overridePreferenceSMTPHost/properties array){span}{td}{tr}{tr:id=des}{td}{sub-section:2D85EB07-6CA8-4771-A9DA-78701CC23635_des|text=|trigger=button}{sub-section}{sub-section:2D85EB07-6CA8-4771-A9DA-78701CC23635_des|trigger=none|class=sIndent}Send a mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:2D85EB07-6CA8-4771-A9DA-78701CC23635_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2D85EB07-6CA8-4771-A9DA-78701CC23635_prs|trigger=none}to
from
subject
msgText
\[cc\]
\[bcc\]
\[attachment/attachments array\]
\[overridePreferenceSMTPHost/properties array\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:2D85EB07-6CA8-4771-A9DA-78701CC23635_ret|text=|trigger=button}{sub-section}{sub-section:2D85EB07-6CA8-4771-A9DA-78701CC23635_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2D85EB07-6CA8-4771-A9DA-78701CC23635_see|text=|trigger=button}{sub-section}{sub-section:2D85EB07-6CA8-4771-A9DA-78701CC23635_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2D85EB07-6CA8-4771-A9DA-78701CC23635_see|text=|trigger=button}{sub-section}{sub-section:2D85EB07-6CA8-4771-A9DA-78701CC23635_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2D85EB07-6CA8-4771-A9DA-78701CC23635_sam|text=|trigger=button}{sub-section}{sub-section:2D85EB07-6CA8-4771-A9DA-78701CC23635_sam|class=sIndent|trigger=none}{code:language=javascript}
Table Body (tbody) |
---|
id | sendMail-String_String_String_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(to, from, subject, msgText) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Send a mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} to - A string containing 1 or multiple addresses seperated by a comma. {String} from - A string containing an address and an optional reply address, seperated by a comma. {String} subject - The subject of the mail {String} msgText - The message text |
|
|
|
Table Body (tbody) |
---|
id | sendMail-String_String_String_String_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(to, from, subject, msgText, cc) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Send a mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} to - A string containing 1 or multiple addresses seperated by a comma. {String} from - A string containing an address and an optional reply address, seperated by a comma. {String} subject - The subject of the mail {String} msgText - The message text {String} cc - One or more addresses seperated by a comma |
|
|
|
Table Body (tbody) |
---|
id | sendMail-String_String_String_String_String_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(to, from, subject, msgText, cc, bcc) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Send a mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} to - A string containing 1 or multiple addresses seperated by a comma. {String} from - A string containing an address and an optional reply address, seperated by a comma. {String} subject - The subject of the mail {String} msgText - The message text {String} cc - One or more addresses seperated by a comma {String} bcc - One or more addresses seperated by a comma |
|
|
|
Table Body (tbody) |
---|
id | sendMail-String_String_String_String_String_String_Attachment |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(to, from, subject, msgText, cc, bcc, attachment) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Send a mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} to - A string containing 1 or multiple addresses seperated by a comma. {String} from - A string containing an address and an optional reply address, seperated by a comma. {String} subject - The subject of the mail {String} msgText - The message text {String} cc - One or more addresses seperated by a comma {String} bcc - One or more addresses seperated by a comma {Attachment} attachment - A single attachment |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var attachment = plugins.mail.createBinaryAttachment('embedded',plugins.file.readFile('c:/temp/a_logo.gif'));
var msgText = 'plain msg<html>styled html msg<img src="%%embedded%%"></html>';
var success = plugins.mail.sendMail('[email protected],[email protected]', 'John Cobb <[email protected]>', 'subject', msgText,null,'[email protected],[email protected]',attachment);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK');
} |
|
|
|
|
Table Body (tbody) |
---|
id | sendMail-String_String_String_String_String_String_Attachment_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(to, from, subject, msgText, cc, bcc, attachment, smtpHost) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Send a mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} to - A string containing 1 or multiple addresses seperated by a comma. {String} from - A string containing an address and an optional reply address, seperated by a comma. {String} subject - The subject of the mail {String} msgText - The message text {String} cc - One or more addresses seperated by a comma {String} bcc - One or more addresses seperated by a comma {Attachment} attachment - A single attachment {String} smtpHost - The smtp host |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var attachment = plugins.mail.createBinaryAttachment('embedded',plugins.file.readFile('c:/temp/a_logo.gif'));
var msgText = 'plain msg<html>styled html msg<img src="%%embedded%%"></html>';
var smtphost = 'myserver.com';
var success = plugins.mail.sendMail('[email protected],[email protected]', 'John Cobb <[email protected]>', 'subject', msgText,null,'[email protected]',attachment,smtphost);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK');
} |
|
|
|
|
Table Body (tbody) |
---|
id | sendMail-String_String_String_String_String_String_Attachment_StringArray |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(to, from, subject, msgText, cc, bcc, attachment, overrideProperties) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Send a mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} to - A string containing 1 or multiple addresses seperated by a comma. {String} from - A string containing an address and an optional reply address, seperated by a comma. {String} subject - The subject of the mail {String} msgText - The message text {String} cc - One or more addresses seperated by a comma {String} bcc - One or more addresses seperated by a comma {Attachment} attachment - A single attachment {String[]} overrideProperties - An array of properties |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var attachment = plugins.mail.createBinaryAttachment('embedded',plugins.file.readFile('c:/temp/a_logo.gif'));
var msgText = 'plain msg<html>styled html msg<img src="%%embedded%%"></html>';
//it is possbile to set all kind of smtp properties
var properties = new Array()
properties[0] = 'mail.smtp.host=myserver.com'
// properties specification can be found at:http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html
var success = plugins.mail.sendMail('[email protected],[email protected]', 'John Cobb <[email protected]>', 'subject', msgText,null,'[email protected]',attachment,properties);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK');
} |
|
|
|
|
Table Body (tbody) |
---|
id | sendMail-String_String_String_String_String_String_AttachmentArray |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(to, from, subject, msgText, cc, bcc, attachments) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Send a mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} to - A string containing 1 or multiple addresses seperated by a comma. {String} from - A string containing an address and an optional reply address, seperated by a comma. {String} subject - The subject of the mail {String} msgText - The message text {String} cc - One or more addresses seperated by a comma {String} bcc - One or more addresses seperated by a comma {Attachment[]} attachments - The attachments |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var attachment1 = plugins.mail.createBinaryAttachment('embedded',plugins.file.readFile('c:/temp/a_logo.gif'));
var attachment2 = plugins.mail.createTextAttachment('embedded','A text attachement');
var msgText = 'plain msg<html>styled html msg<img src="%%embedded%%"></html>';
var success = plugins.mail.sendMail('[email protected],[email protected]', 'John Cobb <[email protected]>', 'subject', msgText,null,'[email protected],[email protected]',[attachment1,attachment2]);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK');
} |
|
|
|
|
Table Body (tbody) |
---|
id | sendMail-String_String_String_String_String_String_AttachmentArray_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(to, from, subject, msgText, cc, bcc, attachments, smtpHost) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Send a mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} to - A string containing 1 or multiple addresses seperated by a comma. {String} from - A string containing an address and an optional reply address, seperated by a comma. {String} subject - The subject of the mail {String} msgText - The message text {String} cc - One or more addresses seperated by a comma {String} bcc - One or more addresses seperated by a comma {Attachment[]} attachments - The attachments {String} smtpHost - The smtp host |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var attachment1 = plugins.mail.createBinaryAttachment('embedded',plugins.file.readFile('c:/temp/a_logo.gif'));
var attachment2 = plugins.mail.createTextAttachment('embedded','A text attachement');
var msgText = 'plain msg<html>styled html msg<img src="%%embedded%%"></html>';
var smtphost = 'myserver.com';
var success = plugins.mail.sendMail('[email protected],[email protected]', 'John Cobb <[email protected]>', 'subject', msgText,null,'[email protected]',[attachment1,attachement2],smtphost);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK');
} |
|
|
|
|
Table Body (tbody) |
---|
id | sendMail-String_String_String_String_String_String_AttachmentArray_StringArray |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(to, from, subject, msgText, cc, bcc, attachments, overrideProperties) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Send a mail, if you make the msgText start with <html> the message will be sent in html (and you can use all html formatting). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {String} to - A string containing 1 or multiple addresses seperated by a comma. {String} from - A string containing an address and an optional reply address, seperated by a comma. {String} subject - The subject of the mail {String} msgText - The message text {String} cc - One or more addresses seperated by a comma {String} bcc - One or more addresses seperated by a comma {Attachment[]} attachments - The attachments {String[]} overrideProperties - An array of properties |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var attachment1 = plugins.mail.createBinaryAttachment('embedded',plugins.file.readFile('c:/temp/a_logo.gif'));
var |
|
|
|
| msgText 'plainmsg<html>styled html msg<img src="%%embedded%%"></html>';
var success = sendMail('[email protected],[email protected]', 'John Cobb <[email protected]>', 'subject', msgText,null,'[email protected]',[attachment1]);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK');
}
createTextAttachment('embedded','A text attachement');
var msgText = 'plain msg<html>styled html msg<img src="%%embedded%%"></html>';
//it is possbile to set all kind of smtp properties
|
|
|
|
| //var properties = new Array()
|
|
|
|
| //properties[0] = 'mail.smtp.host=myserver.com'
// properties specification can be found at:http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html
|
|
|
|
| //msgsnull[attachment1,attachement2], |
|
|
|
| {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}(!success)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK');
} |
|
|
|
|
|