omron — SendEmailExt

Appendix: Built-in Scripting Language Notes Before you can send any email, you must first use the CnfEmail function to configure the email settings. Incorrect settings can result in several different error codes (see "Returned value" above). Also, SendEmail cannot be used to send an email that contains Unicode characters. To do that, use the SendEmailExt function instead. Examples SendEmail( "Hi!", "How are you?", "rogers@pnd.net" ) SendEmail( statusSummary, statusDetail, adminAddress ) SendEmailExt Sends e-mail messages with attached files. Syntax SendEMailExt( strSubject , strMessage , strTo , optStrCc , optStrBcc , optStrFile1 , …

, optStrFileN ) strSubject strMessage The e-mail subject (up to 255 characters). The e-mail message (up to 255 characters). strTo The recipient's address. You can specify more than one recipient, using a semicolon ( ; ) to separate the addresses. optStrCc The recipients' addresses to be Cc'ed. You can specify more than one recipient, using a semicolon ( ; ) to separate the addresses. This is an optional parameter, but if you need to use subsequent parameters, then you can specify a null string ( "" ) here. optStrBcc The recipients' addresses to be Bcc'ed. You can specify more than one recipient, using a semicolon ( ; ) to separate the addresses.

This is an optional parameter, but if you need to use subsequent parameters, then you can specify a null string ( "" ) here. optStrFile (1-N) Complete file paths and names of file attachments. Returned value Page 596 InduSoft Web Studio Value Description 13 Invalid username 14 Invalid password Function Group Execution Windows Embedded Thin Client SendEmailExt Email Asynchronous Supported Supported Supported −4 Some of the attached files were not found. −3 Wrong number of parameters (at least three parameters are required). −2 The INDMail.DLL library version is incorrect. −1 The INDMail.DLL library is corrupted. 0 Success