18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

Syntax<br />

SendEMailExt( strSubject, strMessage, strTo, optStrCc, optStrBcc, optStrFile1,<br />

… , optStrFileN )<br />

strSubject<br />

strMessage<br />

strTo<br />

optStrCc<br />

optStrBcc<br />

The e-mail subject (up to 255 characters).<br />

The e-mail message (up to 255 characters).<br />

The recipient's address. You can specify more than one recipient, using a semicolon (;) to<br />

separate the addresses.<br />

The recipients' addresses to be Cc'ed. You can specify more than one recipient, using a<br />

semicolon (;) to separate the addresses.<br />

This is an optional parameter, but if you need to use subsequent parameters, then you can<br />

specify a null string ("") here.<br />

The recipients' addresses to be Bcc'ed. You can specify more than one recipient, using a<br />

semicolon (;) to separate the addresses.<br />

This is an optional parameter, but if you need to use subsequent parameters, then you can<br />

specify a null string ("") here.<br />

optStrFile (1-N)<br />

Complete file paths and names of file attachments.<br />

Returned value<br />

−4<br />

−3<br />

−2<br />

−1<br />

Some of the attached files were not found.<br />

Wrong number of parameters (at least three parameters are required).<br />

The INDMail.DLL library version is incorrect.<br />

The INDMail.DLL library is corrupted.<br />

0 Success<br />

1 Cannot execute the function because the last e-mail has not been sent yet.<br />

2 Internal error<br />

Notes<br />

Before you can send any email, you must first use the CnfEmail function to configure the email settings.<br />

Incorrect settings can result in several different error codes (see "Returned value" above).<br />

Examples<br />

Tag Name<br />

Tag<br />

Tag<br />

Expression<br />

SendEmailExt( "Subject", "Message", "Sam@universe.com", "", "", "C:<br />

\Projects eport.txt" )<br />

SendEmailExt( "Subject", "Message", "David@Ohio.net",<br />

"Ted@Austin.com", "Bart@Springfield.gov", "C:\TechRef51.doc" )<br />

Page 710<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!