18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix: Built-in Scripting Language<br />

Email functions<br />

These functions are used to configure and send email from within a project.<br />

CnfEmail<br />

This function configures the email settings used by other features in the project that can send email, such as<br />

Alarm worksheets and the SendEmail and SendEmailExt functions.<br />

Function Group Execution Windows Embedded Thin Client<br />

CnfEmail Email Synchronous Supported Supported, except for<br />

encryption<br />

Supported<br />

Syntax<br />

CnfEmail( strSMTP, strFrom, strPOP3, strUser, strPassword, optNumTimeout, optNumAuthType, optStrSMT<br />

)<br />

CnfEmail(strSMTP,strFrom,strPOP3,strUser,strPassword{ | ,optNumTimeout{ | ,{ optNumAuthType | 1<br />

| 2 }{ | ,optStrSMTPUser,optStrSMTPPassword } } })<br />

strSMTP<br />

strFrom<br />

strPOP3<br />

strUser<br />

strPassword<br />

The hostname or IP address of the outgoing email server, which is also known as the SMTP<br />

server. You can include a port number if the server does not use one of the standard SMTP<br />

ports.<br />

Note: For projects that will run on Windows Embedded devices, you must<br />

specify an IP address.<br />

The email address from which emails will be sent and at which emails may be received. This<br />

should be a valid address on the POP3 server (see strPOP3 below).<br />

The hostname or IP address of the incoming email server, which is also known as the POP3<br />

server. You can include a port number if the server does not use one of the standard POP3<br />

ports.<br />

Note: For projects that will run on Windows Embedded devices, you must<br />

specify an IP address.<br />

The username to be used to log onto the POP3 server.<br />

The password to be used to log onto the POP3 server.<br />

optNumTimeout<br />

The timeout limit (in seconds) to be used when sending email. If no response is received from the<br />

SMTP server within this period of time, then the operation is aborted.<br />

This is an optional parameter; if no timeout is specified, then the project will keep trying forever<br />

until it receives a response. You should specify some timeout, however, to make sure that your<br />

project won't freeze.<br />

optNumAuthType<br />

optStrSMTPUser<br />

Page 706<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!