Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
{hidden} DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING. THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden} {sub-section:description|text=}*Using GMail* To connect to GMail the following settings supplied in the properties Array: {code} var userName = 'xxx'; var passWord = 'yyy'; var properties = new Array(); properties[0] = 'mail.smtp.host=smtp.gmail.com'; properties[1] = 'mail.smtp.auth=true'; properties[2] = 'mail.smtp.username=' + userName; properties[3] = 'mail.smtp.password=' + passWord; properties[4] = 'mail.smtp.port=587'; properties[5] = 'mail.smtp.starttls.enable=true'; {code}{sub-section}\\ {table:id=|class=servoy sReturnTypes}{tr:style=height: 30px;}{th}Return Types{th}{tr}{tr}{td}{span:class=sWordList}[Attachment]{span}{span:class=sWordList}[MailMessage]{span}{td}{tr}{table}\\ {table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[Attachment]{td}{td}[#createBinaryAttachment]\(filename, binarydata) Creates a binary attachment object.{td}{tr}{tbody}{tbody}{tr}{td}[Attachment]{td}{td}[#createBinaryAttachment]\(filename, binarydata, mimeType) Creates a binary attachment object.{td}{tr}{tbody}{tbody}{tr}{td}[Attachment]{td}{td}[#createTextAttachment]\(filename, textdata) Creates a text based attachment objec with the default 'text/plain' mimetype{td}{tr}{tbody}{tbody}{tr}{td}[Attachment]{td}{td}[#createTextAttachment]\(filename, textdata, mimeType) Creates a text based attachment object.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getLastSendMailExceptionMsg]\() Get the exception that occurred in the last sendMail attempt (null if no exception occurred).{td}{tr}{tbody}{tbody}{tr}{td}[MailMessage]{td}{td}[#getMailMessage]\(binaryblob/string) Helper method, returns MailMessage object from binary or 7bits string.{td}{tr}{tbody}{tbody}{tr}{td}[String]\[]{td}{td}[#getPlainMailAddresses]\(addressesString) Helper method to only get the plain addresses.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isValidEmailAddress]\(email) Checks whether the given e\-mail address is valid or not.{td}{tr}{tbody}{tbody}{tr}{td}[MailMessage]\[]{td}{td}[#receiveMail]\(username, password, leaveMsgsOnServer) Receive mails from pop3 account.{td}{tr}{tbody}{tbody}{tr}{td}[MailMessage]\[]{td}{td}[#receiveMail]\(username, password, leaveMsgsOnServer, receiveMode) Receive mails from pop3 account.{td}{tr}{tbody}{tbody}{tr}{td}[MailMessage]\[]{td}{td}[#receiveMail]\(username, password, leaveMsgsOnServer, receiveMode, onlyReceiveMsgWithSentDate) Receive mails from pop3 account.{td}{tr}{tbody}{tbody}{tr}{td}[MailMessage]\[]{td}{td}[#receiveMail]\(username, password, leaveMsgsOnServer, receiveMode, onlyReceiveMsgWithSentDate, pop3Host) Receive mails from pop3 account.{td}{tr}{tbody}{tbody}{tr}{td}[MailMessage]\[]{td}{td}[#receiveMail]\(username, password, leaveMsgsOnServer, receiveMode, onlyReceiveMsgWithSentDate, properties) Receive mails from pop3 account.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#sendMail]\(to, from, subject, msgText) 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).{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#sendMail]\(to, from, subject, msgText, cc) 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).{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#sendMail]\(to, from, subject, msgText, cc, bcc) 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).{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#sendMail]\(to, from, subject, msgText, cc, bcc, attachment) 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).{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#sendMail]\(to, from, subject, msgText, cc, bcc, attachment, smtpHost) 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).{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#sendMail]\(to, from, subject, msgText, cc, bcc, attachment, overrideProperties) 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).{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#sendMail]\(to, from, subject, msgText, cc, bcc, attachments) 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).{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#sendMail]\(to, from, subject, msgText, cc, bcc, attachments, smtpHost) 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).{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#sendMail]\(to, from, subject, msgText, cc, bcc, attachments, overrideProperties) 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).{td}{tr}{tbody}{table}\\ {table:id=function|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=createBinaryAttachment-String_byteArray|class=node}{tr:id=name}{td}h6.createBinaryAttachment{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Attachment]{span}{span:id=iets|style=float: left; font-weight: bold;}createBinaryAttachment{span}{span:id=iets|style=float: left;}\(filename, binarydata){span}{td}{tr}{tr:id=des}{td}{sub-section:createBinaryAttachment-String_byteArray_des|text=|trigger=button}{sub-section}{sub-section:createBinaryAttachment-String_byteArray_des|trigger=none|class=sIndent}Creates a binary attachment object.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createBinaryAttachment-String_byteArray_snc|text=|trigger=button}{sub-section}{sub-section:createBinaryAttachment-String_byteArray_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:createBinaryAttachment-String_byteArray_prs|text=|trigger=button}{sub-section}{sub-section:createBinaryAttachment-String_byteArray_prs|trigger=none|class=sIndent}\{[String]} filename \{byte[]} binarydata {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:createBinaryAttachment-String_byteArray_ret|text=|trigger=button}{sub-section}{sub-section:createBinaryAttachment-String_byteArray_ret|trigger=none|class=sIndent}[Attachment]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createBinaryAttachment-String_byteArray_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createBinaryAttachment-String_byteArray_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createBinaryAttachment-String_byteArray_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createBinaryAttachment-String_byteArray_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createBinaryAttachment-String_byteArray_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createBinaryAttachment-String_byteArray_sam|trigger=none}{code:language=javascript} 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'); } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=createBinaryAttachment-String_byteArray_String|class=node}{tr:id=name}{td}h6.createBinaryAttachment{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Attachment]{span}{span:id=iets|style=float: left; font-weight: bold;}createBinaryAttachment{span}{span:id=iets|style=float: left;}\(filename, binarydata, mimeType){span}{td}{tr}{tr:id=des}{td}{sub-section:createBinaryAttachment-String_byteArray_String_des|text=|trigger=button}{sub-section}{sub-section:createBinaryAttachment-String_byteArray_String_des|trigger=none|class=sIndent}Creates a binary attachment object.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createBinaryAttachment-String_byteArray_String_snc|text=|trigger=button}{sub-section}{sub-section:createBinaryAttachment-String_byteArray_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:createBinaryAttachment-String_byteArray_String_prs|text=|trigger=button}{sub-section}{sub-section:createBinaryAttachment-String_byteArray_String_prs|trigger=none|class=sIndent}\{[String]} filename \{byte[]} binarydata \{[String]} mimeType {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:createBinaryAttachment-String_byteArray_String_ret|text=|trigger=button}{sub-section}{sub-section:createBinaryAttachment-String_byteArray_String_ret|trigger=none|class=sIndent}[Attachment]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createBinaryAttachment-String_byteArray_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createBinaryAttachment-String_byteArray_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createBinaryAttachment-String_byteArray_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createBinaryAttachment-String_byteArray_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createBinaryAttachment-String_byteArray_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createBinaryAttachment-String_byteArray_String_sam|trigger=none}{code:language=javascript} 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'); } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=createTextAttachment-String_String|class=node}{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){span}{td}{tr}{tr:id=des}{td}{sub-section:createTextAttachment-String_String_des|text=|trigger=button}{sub-section}{sub-section:createTextAttachment-String_String_des|trigger=none|class=sIndent}Creates a text based attachment objec with the default 'text/plain' mimetype{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createTextAttachment-String_String_snc|text=|trigger=button}{sub-section}{sub-section:createTextAttachment-String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:createTextAttachment-String_String_prs|text=|trigger=button}{sub-section}{sub-section:createTextAttachment-String_String_prs|trigger=none|class=sIndent}\{[String]} filename \{[String]} textdata {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:createTextAttachment-String_String_ret|text=|trigger=button}{sub-section}{sub-section:createTextAttachment-String_String_ret|trigger=none|class=sIndent}[Attachment]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createTextAttachment-String_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createTextAttachment-String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createTextAttachment-String_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createTextAttachment-String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createTextAttachment-String_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createTextAttachment-String_String_sam|trigger=none}{code:language=javascript} 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'); } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=createTextAttachment-String_String_String|class=node}{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:createTextAttachment-String_String_String_des|text=|trigger=button}{sub-section}{sub-section:createTextAttachment-String_String_String_des|trigger=none|class=sIndent}Creates a text based attachment object.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createTextAttachment-String_String_String_snc|text=|trigger=button}{sub-section}{sub-section:createTextAttachment-String_String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:createTextAttachment-String_String_String_prs|text=|trigger=button}{sub-section}{sub-section:createTextAttachment-String_String_String_prs|trigger=none|class=sIndent}\{[String]} filename \{[String]} textdata \{[String]} mimeType {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:createTextAttachment-String_String_String_ret|text=|trigger=button}{sub-section}{sub-section:createTextAttachment-String_String_String_ret|trigger=none|class=sIndent}[Attachment]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createTextAttachment-String_String_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createTextAttachment-String_String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createTextAttachment-String_String_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createTextAttachment-String_String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createTextAttachment-String_String_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createTextAttachment-String_String_String_sam|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}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getLastSendMailExceptionMsg|class=node}{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:getLastSendMailExceptionMsg_des|text=|trigger=button}{sub-section}{sub-section:getLastSendMailExceptionMsg_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=snc}{td}*Since*\\{sub-section:getLastSendMailExceptionMsg_snc|text=|trigger=button}{sub-section}{sub-section:getLastSendMailExceptionMsg_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getLastSendMailExceptionMsg_prs|text=|trigger=button}{sub-section}{sub-section:getLastSendMailExceptionMsg_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getLastSendMailExceptionMsg_ret|text=|trigger=button}{sub-section}{sub-section:getLastSendMailExceptionMsg_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getLastSendMailExceptionMsg_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getLastSendMailExceptionMsg_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getLastSendMailExceptionMsg_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getLastSendMailExceptionMsg_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getLastSendMailExceptionMsg_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getLastSendMailExceptionMsg_sam|trigger=none}{code:language=javascript} var success = plugins.mail.sendMail('[email protected],[email protected]', 'John Cobb <[email protected]>', 'subject', 'my message',null,'[email protected]'); if (!success) { plugins.dialogs.showWarningDialog('Alert',plugins.mail.getLastSendMailExceptionMsg(),'OK'); } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getMailMessage|class=node}{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:getMailMessage_des|text=|trigger=button}{sub-section}{sub-section:getMailMessage_des|trigger=none|class=sIndent}Helper method, returns MailMessage object from binary or 7bits string.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getMailMessage_snc|text=|trigger=button}{sub-section}{sub-section:getMailMessage_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getMailMessage_prs|text=|trigger=button}{sub-section}{sub-section:getMailMessage_prs|trigger=none|class=sIndent}binaryblob/string {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getMailMessage_ret|text=|trigger=button}{sub-section}{sub-section:getMailMessage_ret|trigger=none|class=sIndent}[MailMessage]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getMailMessage_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getMailMessage_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getMailMessage_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getMailMessage_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getMailMessage_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getMailMessage_sam|trigger=none}{code:language=javascript} var msg = plugins.mail.getMailMessage(myBlob); if (msg != null) //if is null error occurred! { application.output(msg.getFromAddresses()) } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getPlainMailAddresses|class=node}{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:getPlainMailAddresses_des|text=|trigger=button}{sub-section}{sub-section:getPlainMailAddresses_des|trigger=none|class=sIndent}Helper method to only get the plain addresses.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getPlainMailAddresses_snc|text=|trigger=button}{sub-section}{sub-section:getPlainMailAddresses_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getPlainMailAddresses_prs|text=|trigger=button}{sub-section}{sub-section:getPlainMailAddresses_prs|trigger=none|class=sIndent}addressesString {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getPlainMailAddresses_ret|text=|trigger=button}{sub-section}{sub-section:getPlainMailAddresses_ret|trigger=none|class=sIndent}[String]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getPlainMailAddresses_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getPlainMailAddresses_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getPlainMailAddresses_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getPlainMailAddresses_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getPlainMailAddresses_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getPlainMailAddresses_sam|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}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=isValidEmailAddress|class=node}{tr:id=name}{td}h6.isValidEmailAddress{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}isValidEmailAddress{span}{span:id=iets|style=float: left;}\(email){span}{td}{tr}{tr:id=des}{td}{sub-section:isValidEmailAddress_des|text=|trigger=button}{sub-section}{sub-section:isValidEmailAddress_des|trigger=none|class=sIndent}Checks whether the given e\-mail address is valid or not.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:isValidEmailAddress_snc|text=|trigger=button}{sub-section}{sub-section:isValidEmailAddress_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:isValidEmailAddress_prs|text=|trigger=button}{sub-section}{sub-section:isValidEmailAddress_prs|trigger=none|class=sIndent}\{[String]} email {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:isValidEmailAddress_ret|text=|trigger=button}{sub-section}{sub-section:isValidEmailAddress_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:isValidEmailAddress_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:isValidEmailAddress_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:isValidEmailAddress_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:isValidEmailAddress_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:isValidEmailAddress_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:isValidEmailAddress_sam|trigger=none}{code:language=javascript} plugins.mail.isValidEmailAddress("[email protected]"); {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=receiveMail-String_String_Boolean|class=node}{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){span}{td}{tr}{tr:id=des}{td}{sub-section:receiveMail-String_String_Boolean_des|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_des|trigger=none|class=sIndent}Receive mails from pop3 account.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:receiveMail-String_String_Boolean_snc|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:receiveMail-String_String_Boolean_prs|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_prs|trigger=none|class=sIndent}\{[String]} username \{[String]} password \{[Boolean]} leaveMsgsOnServer {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:receiveMail-String_String_Boolean_ret|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_ret|trigger=none|class=sIndent}[MailMessage]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:receiveMail-String_String_Boolean_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:receiveMail-String_String_Boolean_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:receiveMail-String_String_Boolean_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:receiveMail-String_String_Boolean_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:receiveMail-String_String_Boolean_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:receiveMail-String_String_Boolean_sam|trigger=none}{code:language=javascript} 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... } } } } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=receiveMail-String_String_Boolean_Number|class=node}{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){span}{td}{tr}{tr:id=des}{td}{sub-section:receiveMail-String_String_Boolean_Number_des|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_Number_des|trigger=none|class=sIndent}Receive mails from pop3 account.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:receiveMail-String_String_Boolean_Number_snc|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:receiveMail-String_String_Boolean_Number_prs|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_Number_prs|trigger=none|class=sIndent}\{[String]} username \{[String]} password \{[Boolean]} leaveMsgsOnServer \{[Number]} receiveMode {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:receiveMail-String_String_Boolean_Number_ret|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_Number_ret|trigger=none|class=sIndent}[MailMessage]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:receiveMail-String_String_Boolean_Number_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:receiveMail-String_String_Boolean_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:receiveMail-String_String_Boolean_Number_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:receiveMail-String_String_Boolean_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:receiveMail-String_String_Boolean_Number_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:receiveMail-String_String_Boolean_Number_sam|trigger=none}{code:language=javascript} 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()) } } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=receiveMail-String_String_Boolean_Number_Date|class=node}{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){span}{td}{tr}{tr:id=des}{td}{sub-section:receiveMail-String_String_Boolean_Number_Date_des|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_Number_Date_des|trigger=none|class=sIndent}Receive mails from pop3 account.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:receiveMail-String_String_Boolean_Number_Date_snc|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_Number_Date_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:receiveMail-String_String_Boolean_Number_Date_prs|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_Number_Date_prs|trigger=none|class=sIndent}\{[String]} username \{[String]} password \{[Boolean]} leaveMsgsOnServer \{[Number]} receiveMode \{[Date]} onlyReceiveMsgWithSentDate {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:receiveMail-String_String_Boolean_Number_Date_ret|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_Number_Date_ret|trigger=none|class=sIndent}[MailMessage]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:receiveMail-String_String_Boolean_Number_Date_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:receiveMail-String_String_Boolean_Number_Date_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:receiveMail-String_String_Boolean_Number_Date_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:receiveMail-String_String_Boolean_Number_Date_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:receiveMail-String_String_Boolean_Number_Date_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:receiveMail-String_String_Boolean_Number_Date_sam|trigger=none}{code:language=javascript} //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()) } } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=receiveMail-String_String_Boolean_Number_Date_String|class=node}{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, pop3Host){span}{td}{tr}{tr:id=des}{td}{sub-section:receiveMail-String_String_Boolean_Number_Date_String_des|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_Number_Date_String_des|trigger=none|class=sIndent}Receive mails from pop3 account.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:receiveMail-String_String_Boolean_Number_Date_String_snc|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_Number_Date_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:receiveMail-String_String_Boolean_Number_Date_String_prs|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_Number_Date_String_prs|trigger=none|class=sIndent}\{[String]} username \{[String]} password \{[Boolean]} leaveMsgsOnServer \{[Number]} receiveMode \{[Date]} onlyReceiveMsgWithSentDate \{[String]} pop3Host {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:receiveMail-String_String_Boolean_Number_Date_String_ret|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_Number_Date_String_ret|trigger=none|class=sIndent}[MailMessage]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:receiveMail-String_String_Boolean_Number_Date_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:receiveMail-String_String_Boolean_Number_Date_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:receiveMail-String_String_Boolean_Number_Date_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:receiveMail-String_String_Boolean_Number_Date_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:receiveMail-String_String_Boolean_Number_Date_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:receiveMail-String_String_Boolean_Number_Date_String_sam|trigger=none}{code:language=javascript} //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... } } } } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=receiveMail-String_String_Boolean_Number_Date_StringArray|class=node}{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, properties){span}{td}{tr}{tr:id=des}{td}{sub-section:receiveMail-String_String_Boolean_Number_Date_StringArray_des|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_Number_Date_StringArray_des|trigger=none|class=sIndent}Receive mails from pop3 account.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:receiveMail-String_String_Boolean_Number_Date_StringArray_snc|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_Number_Date_StringArray_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:receiveMail-String_String_Boolean_Number_Date_StringArray_prs|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_Number_Date_StringArray_prs|trigger=none|class=sIndent}\{[String]} username \{[String]} password \{[Boolean]} leaveMsgsOnServer \{[Number]} receiveMode \{[Date]} onlyReceiveMsgWithSentDate \{[String]\[]} properties {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:receiveMail-String_String_Boolean_Number_Date_StringArray_ret|text=|trigger=button}{sub-section}{sub-section:receiveMail-String_String_Boolean_Number_Date_StringArray_ret|trigger=none|class=sIndent}[MailMessage]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:receiveMail-String_String_Boolean_Number_Date_StringArray_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:receiveMail-String_String_Boolean_Number_Date_StringArray_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:receiveMail-String_String_Boolean_Number_Date_StringArray_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:receiveMail-String_String_Boolean_Number_Date_StringArray_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:receiveMail-String_String_Boolean_Number_Date_StringArray_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:receiveMail-String_String_Boolean_Number_Date_StringArray_sam|trigger=none}{code:language=javascript} 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()) } } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=sendMail-String_String_String_String|class=node}{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){span}{td}{tr}{tr:id=des}{td}{sub-section:sendMail-String_String_String_String_des|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_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}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:sendMail-String_String_String_String_snc|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:sendMail-String_String_String_String_prs|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_prs|trigger=none|class=sIndent}\{[String]} to -- A string with 1 address or multiply seperated by a comma. \{[String]} from -- A address string with optional a reply address seperated by a comma. \{[String]} subject -- The subject of the mail \{[String]} msgText -- The message text {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:sendMail-String_String_String_String_ret|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:sendMail-String_String_String_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:sendMail-String_String_String_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:sendMail-String_String_String_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_sam|trigger=none}{code:language=javascript} 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]>,[email protected]', 'subject', msgText); if (!success) { plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK'); } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=sendMail-String_String_String_String_String|class=node}{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){span}{td}{tr}{tr:id=des}{td}{sub-section:sendMail-String_String_String_String_String_des|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_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}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:sendMail-String_String_String_String_String_snc|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:sendMail-String_String_String_String_String_prs|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_prs|trigger=none|class=sIndent}\{[String]} to -- A string with 1 address or multiply seperated by a comma. \{[String]} from -- A address string with optional a 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 {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:sendMail-String_String_String_String_String_ret|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:sendMail-String_String_String_String_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:sendMail-String_String_String_String_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:sendMail-String_String_String_String_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_sam|trigger=none}{code:language=javascript} 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,'[email protected],[email protected]'); if (!success) { plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK'); } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=sendMail-String_String_String_String_String_String|class=node}{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){span}{td}{tr}{tr:id=des}{td}{sub-section:sendMail-String_String_String_String_String_String_des|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_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}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:sendMail-String_String_String_String_String_String_snc|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:sendMail-String_String_String_String_String_String_prs|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_prs|trigger=none|class=sIndent}\{[String]} to -- A string with 1 address or multiply seperated by a comma. \{[String]} from -- A address string with optional a 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 {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:sendMail-String_String_String_String_String_String_ret|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:sendMail-String_String_String_String_String_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:sendMail-String_String_String_String_String_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:sendMail-String_String_String_String_String_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_sam|trigger=none}{code:language=javascript} 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]'); if (!success) { plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK'); } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=sendMail-String_String_String_String_String_String_Attachment|class=node}{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){span}{td}{tr}{tr:id=des}{td}{sub-section:sendMail-String_String_String_String_String_String_Attachment_des|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_Attachment_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}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:sendMail-String_String_String_String_String_String_Attachment_snc|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_Attachment_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:sendMail-String_String_String_String_String_String_Attachment_prs|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_Attachment_prs|trigger=none|class=sIndent}\{[String]} to -- A string with 1 address or multiply seperated by a comma. \{[String]} from -- A address string with optional a 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 {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:sendMail-String_String_String_String_String_String_Attachment_ret|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_Attachment_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:sendMail-String_String_String_String_String_String_Attachment_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_Attachment_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:sendMail-String_String_String_String_String_String_Attachment_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_Attachment_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:sendMail-String_String_String_String_String_String_Attachment_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_Attachment_sam|trigger=none}{code:language=javascript} 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'); } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=sendMail-String_String_String_String_String_String_Attachment_String|class=node}{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, smtpHost){span}{td}{tr}{tr:id=des}{td}{sub-section:sendMail-String_String_String_String_String_String_Attachment_String_des|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_Attachment_String_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}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:sendMail-String_String_String_String_String_String_Attachment_String_snc|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_Attachment_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:sendMail-String_String_String_String_String_String_Attachment_String_prs|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_Attachment_String_prs|trigger=none|class=sIndent}\{[String]} to -- A string with 1 address or multiply seperated by a comma. \{[String]} from -- A address string with optional a 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 {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:sendMail-String_String_String_String_String_String_Attachment_String_ret|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_Attachment_String_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:sendMail-String_String_String_String_String_String_Attachment_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_Attachment_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:sendMail-String_String_String_String_String_String_Attachment_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_Attachment_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:sendMail-String_String_String_String_String_String_Attachment_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_Attachment_String_sam|trigger=none}{code:language=javascript} 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'); } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=sendMail-String_String_String_String_String_String_Attachment_StringArray|class=node}{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, overrideProperties){span}{td}{tr}{tr:id=des}{td}{sub-section:sendMail-String_String_String_String_String_String_Attachment_StringArray_des|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_Attachment_StringArray_des|trigger=none|class=sIndent}Send a
Wiki Markup
Cache
indextrue
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClient

servoy sSummary12%30%58%height: 30px;3Methods SummaryCreates a binary attachment object.Creates a binary attachment object.Creates a text based attachment objec with the default 'text/plain' mimetypeCreates a text based attachment object.Get the exception that occurred in the last sendMail attempt (null if no exception occurred).Helper method, returns MailMessage object from binary or 7bits string.Helper method to only get the plain addresses.Checks whether the given e-mail address is valid or not.Receive mails from pop3 account.Receive mails from pop3 account.Receive mails from pop3 account.Receive mails from pop3 account.Receive mails from pop3 account.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).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).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).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).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).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).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).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).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).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).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).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).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).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).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).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).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).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).

functionservoy sDetail2100%height:30px2Methods DetailscreateBinaryAttachmentname

createBinaryAttachment(filename, binarydata)

dessIndent
Creates a binary attachment object.
prs

Parameters

sIndentfilename ;binarydata ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRowcreateBinaryAttachmentname

createBinaryAttachment(filename, binarydata, mimeType)

dessIndent
Creates a binary attachment object.
prs

Parameters

sIndentfilename ;binarydata ;mimeType ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
createTextAttachmentname

createTextAttachment(filename, textdata)

dessIndent
Creates a text based attachment objec with the default 'text/plain' mimetype
prs

Parameters

sIndentfilename ;textdata ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
createTextAttachmentname

createTextAttachment(filename, textdata, mimeType)

dessIndent
Creates a text based attachment object.
prs

Parameters

sIndentfilename ;textdata ;mimeType ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getLastSendMailExceptionMsgname

getLastSendMailExceptionMsg()

dessIndent
Get the exception that occurred in the last sendMail attempt (null if no exception occurred).
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getMailMessagename

getMailMessage(binaryblob/string)

dessIndent
Helper method, returns MailMessage object from binary or 7bits string.
prs

Parameters

sIndentbinaryblob/string ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getPlainMailAddressesname

getPlainMailAddresses(addressesString)

dessIndent
Helper method to only get the plain addresses.
prs

Parameters

sIndentaddressesString ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
isValidEmailAddressname

isValidEmailAddress(email)

dessIndent
Checks whether the given e-mail address is valid or not.
prs

Parameters

sIndentemail ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
receiveMailname

receiveMail(username, password, leaveMsgsOnServer)

dessIndent
Receive mails from pop3 account.
prs

Parameters

sIndentusername ;password ;leaveMsgsOnServer ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
receiveMailname

receiveMail(username, password, leaveMsgsOnServer, receiveMode)

dessIndent
Receive mails from pop3 account.
prs

Parameters

sIndentusername ;password ;leaveMsgsOnServer ;receiveMode ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
receiveMailname

receiveMail(username, password, leaveMsgsOnServer, receiveMode, onlyReceiveMsgWithSentDate)

dessIndent
Receive mails from pop3 account.
prs

Parameters

sIndentusername ;password ;leaveMsgsOnServer ;receiveMode ;onlyReceiveMsgWithSentDate ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
receiveMailname

receiveMail(username, password, leaveMsgsOnServer, receiveMode, onlyReceiveMsgWithSentDate, pop3Host)

dessIndent
Receive mails from pop3 account.
prs

Parameters

sIndentusername ;password ;leaveMsgsOnServer ;receiveMode ;onlyReceiveMsgWithSentDate ;pop3Host ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
receiveMailname

receiveMail(username, password, leaveMsgsOnServer, receiveMode, onlyReceiveMsgWithSentDate, properties)

dessIndent
Receive mails from pop3 account.
prs

Parameters

sIndentusername ;password ;leaveMsgsOnServer ;receiveMode ;onlyReceiveMsgWithSentDate ;properties ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sendBulkMailname

sendBulkMail(to, from, subject, msgText)

dessIndent
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.
prs

Parameters

sIndenttoA string containing 1 or multiple addresses seperated by a comma.fromA string containing an address and an optional reply address, seperated by a comma.subjectThe subject of the bulk mailmsgTextThe message text
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sendBulkMailname

sendBulkMail(to, from, subject, msgText, cc)

dessIndent
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).
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:sendMail-String_String_String_String_String_String_Attachment_StringArray_snc|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_Attachment_StringArray_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:sendMail-String_String_String_String_String_String_Attachment_StringArray_prs|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_Attachment_StringArray_prs|trigger=none|class=sIndent}\{[String]} to -- A string with 1 address or multiply seperated by a comma. \{[String]} from -- A address string with optional a 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 {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:sendMail-String_String_String_String_String_String_Attachment_StringArray_ret|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_Attachment_StringArray_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:sendMail-String_String_String_String_String_String_Attachment_StringArray_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_Attachment_StringArray_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:sendMail-String_String_String_String_String_String_Attachment_StringArray_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_Attachment_StringArray_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:sendMail-String_String_String_String_String_String_Attachment_StringArray_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_Attachment_StringArray_sam|trigger=none}{code:language=javascript} 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'); } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=sendMail-String_String_String_String_String_String_AttachmentArray|class=node}{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, attachments){span}{td}{tr}{tr:id=des}{td}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_des|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_des|trigger=none|class=sIndent}Send a

A bulk email makes it possible for one to not receive "out of office" emails back from receiver.
prs

Parameters

sIndenttoA string containing 1 or multiple addresses seperated by a comma.fromA string containing an address and an optional reply address, seperated by a comma.subjectThe subject of the bulk mailmsgTextThe message textccOne or more addresses seperated by a comma
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sendBulkMailname

sendBulkMail(to, from, subject, msgText, cc, bcc)

dessIndent
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.
prs

Parameters

sIndenttoA string containing 1 or multiple addresses seperated by a comma.fromA string containing an address and an optional reply address, seperated by a comma.subjectThe subject of the bulk mailmsgTextThe message textccOne or more addresses seperated by a commabccOne or more addresses seperated by a comma
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sendBulkMailname

sendBulkMail(to, from, subject, msgText, cc, bcc, attachment)

dessIndent
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.
prs

Parameters

sIndenttoA string containing 1 or multiple addresses seperated by a comma.fromA string containing an address and an optional reply address, seperated by a comma.subjectThe subject of the bulk mailmsgTextThe message textccOne or more addresses seperated by a commabccOne or more addresses seperated by a commaattachmentA single attachment
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sendBulkMailname

sendBulkMail(to, from, subject, msgText, cc, bcc, attachment, smtpHost)

dessIndent
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.
prs

Parameters

sIndenttoA string containing 1 or multiple addresses seperated by a comma.fromA string containing an address and an optional reply address, seperated by a comma.subjectThe subject of the bulk mailmsgTextThe message textccOne or more addresses seperated by a commabccOne or more addresses seperated by a commaattachmentA single attachmentsmtpHostThe smtp host
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sendBulkMailname

sendBulkMail(to, from, subject, msgText, cc, bcc, attachment, overrideProperties)

dessIndent
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).
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_snc|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_prs|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_prs|trigger=none|class=sIndent}\{[String]} to -- A string with 1 address or multiply seperated by a comma. \{[String]} from -- A address string with optional a 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 {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_ret|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_sam|trigger=none}{code:language=javascript} 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'); } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=sendMail-String_String_String_String_String_String_AttachmentArray_String|class=node}{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, attachments, smtpHost){span}{td}{tr}{tr:id=des}{td}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_String_des|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_String_des|trigger=none|class=sIndent}Send a

A bulk email makes it possible for one to not receive "out of office" emails back from receiver.
prs

Parameters

sIndenttoA string containing 1 or multiple addresses seperated by a comma.fromA string containing an address and an optional reply address, seperated by a comma.subjectThe subject of the bulk mailmsgTextThe message textccOne or more addresses seperated by a commabccOne or more addresses seperated by a commaattachmentA single attachmentoverridePropertiesAn array of properties
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sendBulkMailname

sendBulkMail(to, from, subject, msgText, cc, bcc, attachments)

dessIndent
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.
prs

Parameters

sIndenttoA string containing 1 or multiple addresses seperated by a comma.fromA string containing an address and an optional reply address, seperated by a comma.subjectThe subject of the bulk mailmsgTextThe message textccOne or more addresses seperated by a commabccOne or more addresses seperated by a commaattachmentsThe attachments
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sendBulkMailname

sendBulkMail(to, from, subject, msgText, cc, bcc, attachments, smtpHost)

dessIndent
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.
prs

Parameters

sIndenttoA string containing 1 or multiple addresses seperated by a comma.fromA string containing an address and an optional reply address, seperated by a comma.subjectThe subject of the bulk mailmsgTextThe message textccOne or more addresses seperated by a commabccOne or more addresses seperated by a commaattachmentsThe attachmentssmtpHostThe smtp host
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sendBulkMailname

sendBulkMail(to, from, subject, msgText, cc, bcc, attachments, overrideProperties)

dessIndent
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).
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_String_snc|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_String_prs|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_String_prs|trigger=none|class=sIndent}\{[String]} to -- A string with 1 address or multiply seperated by a comma. \{[String]} from -- A address string with optional a 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 {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_String_ret|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_String_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_String_sam|trigger=none}{code:language=javascript} 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'); } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=sendMail-String_String_String_String_String_String_AttachmentArray_StringArray|class=node}{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, attachments, overrideProperties){span}{td}{tr}{tr:id=des}{td}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_StringArray_des|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_StringArray_des|trigger=none|class=sIndent}

A bulk email makes it possible for one to not receive "out of office" emails back from receiver.
prs

Parameters

sIndenttoA string containing 1 or multiple addresses seperated by a comma.fromA string containing an address and an optional reply address, seperated by a comma.subjectThe subject of the bulk mailmsgTextThe message textccOne or more addresses seperated by a commabccOne or more addresses seperated by a commaattachmentsThe attachmentsoverridePropertiesAn array of properties
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sendMailname

sendMail(to, from, subject, msgText)

dessIndent
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).
prs

Parameters

sIndenttoA string containing 1 or multiple addresses seperated by a comma.fromA string containing an address and an optional reply address, seperated by a comma.subjectThe subject of the mailmsgTextThe message text
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sendMailname

sendMail(to, from, subject, msgText, cc)

dessIndent
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).
prs

Parameters

sIndenttoA string containing 1 or multiple addresses seperated by a comma.fromA string containing an address and an optional reply address, seperated by a comma.subjectThe subject of the mailmsgTextThe message textccOne or more addresses seperated by a comma
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sendMailname

sendMail(to, from, subject, msgText, cc, bcc)

dessIndent
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).
prs

Parameters

sIndenttoA string containing 1 or multiple addresses seperated by a comma.fromA string containing an address and an optional reply address, seperated by a comma.subjectThe subject of the mailmsgTextThe message textccOne or more addresses seperated by a commabccOne or more addresses seperated by a comma
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sendMailname

sendMail(to, from, subject, msgText, cc, bcc, attachment)

dessIndent
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).
prs

Parameters

sIndenttoA string containing 1 or multiple addresses seperated by a comma.fromA string containing an address and an optional reply address, seperated by a comma.subjectThe subject of the mailmsgTextThe message textccOne or more addresses seperated by a commabccOne or more addresses seperated by a commaattachmentA single attachment
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sendMailname

sendMail(to, from, subject, msgText, cc, bcc, attachment, smtpHost)

dessIndent
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).
prs

Parameters

sIndenttoA string containing 1 or multiple addresses seperated by a comma.fromA string containing an address and an optional reply address, seperated by a comma.subjectThe subject of the mailmsgTextThe message textccOne or more addresses seperated by a commabccOne or more addresses seperated by a commaattachmentA single attachmentsmtpHostThe smtp host
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sendMailname

sendMail(to, from, subject, msgText, cc, bcc, attachment, overrideProperties)

dessIndent
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}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_StringArray_snc|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_StringArray_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_StringArray_prs|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_StringArray_prs|trigger=none|class=sIndent}\{[String]} to -- A string with 1 address or multiply seperated by a comma. \{[String]} from -- A address string with optional a 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 {sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_StringArray_ret|text=|trigger=button}{sub-section}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_StringArray_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_StringArray_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_StringArray_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_StringArray_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_StringArray_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_StringArray_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sendMail-String_String_String_String_String_String_AttachmentArray_StringArray_sam|trigger=none}{code:language=javascript} 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.sendMail('[email protected],[email protected]', 'John Cobb <[email protected]>', 'subject', msgText,null,'[email protected]',[attachment1,attachement2],properties); if (!success) { plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK'); } {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
 you can use all html formatting).
prs

Parameters

sIndenttoA string containing 1 or multiple addresses seperated by a comma.fromA string containing an address and an optional reply address, seperated by a comma.subjectThe subject of the mailmsgTextThe message textccOne or more addresses seperated by a commabccOne or more addresses seperated by a commaattachmentA single attachmentoverridePropertiesAn array of properties
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sendMailname

sendMail(to, from, subject, msgText, cc, bcc, attachments)

dessIndent
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).
prs

Parameters

sIndenttoA string containing 1 or multiple addresses seperated by a comma.fromA string containing an address and an optional reply address, seperated by a comma.subjectThe subject of the mailmsgTextThe message textccOne or more addresses seperated by a commabccOne or more addresses seperated by a commaattachmentsThe attachments
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sendMailname

sendMail(to, from, subject, msgText, cc, bcc, attachments, smtpHost)

dessIndent
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).
prs

Parameters

sIndenttoA string containing 1 or multiple addresses seperated by a comma.fromA string containing an address and an optional reply address, seperated by a comma.subjectThe subject of the mailmsgTextThe message textccOne or more addresses seperated by a commabccOne or more addresses seperated by a commaattachmentsThe attachmentssmtpHostThe smtp host
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sendMailname

sendMail(to, from, subject, msgText, cc, bcc, attachments, overrideProperties)

dessIndent
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).
prs

Parameters

sIndenttoA string containing 1 or multiple addresses seperated by a comma.fromA string containing an address and an optional reply address, seperated by a comma.subjectThe subject of the mailmsgTextThe message textccOne or more addresses seperated by a commabccOne or more addresses seperated by a commaattachmentsThe attachmentsoverridePropertiesAn array of properties
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow