Appendix: Built-in Scripting Language Email functions These functions are used to configure and send email from within a project. CnfEmail This function configures the email settings used by other features in the project that can send email, such as Alarm worksheets and the SendEmail and SendEmailExt functions. Syntax CnfEmail( strSMTP , strFrom , strPOP3 , strUser , strPassword { | , optNumTimeout { | , { optNumAuthType | 1 }{ | , optStrSMTPUser , optStrSMTPPassword } } } ) strSMTP The hostname or IP address of the outgoing email server, which is also known as the SMTP server. You can include a port number if the server does not use one of the standard SMTP ports. Note:
For projects that will run on Windows Embedded devices, you must specify an IP address. strFrom The email address from which emails will be sent and at which emails may be received. This should be a valid address on the POP3 server (see strPOP3 below). strPOP3 The hostname or IP address of the incoming email server, which is also known as the POP3 server. You can include a port number if the server does not use one of the standard POP3 ports. Note: For projects that will run on Windows Embedded devices, you must specify an IP address. strUser strPassword The username to be used to log onto the POP3 server. The password to be used to log onto the POP3 server.
optNumTimeout The timeout limit (in seconds) to be used when sending email. If no response is received from the SMTP server within this period of time, then the operation is aborted. This is an optional parameter; if no timeout is specified, then the project will keep trying forever until it receives a response. You should specify some timeout, however, to make sure that your project won't freeze. optNumAuthType optStrSMTPUser optStrSMTPPassword By default, SMTP servers do not require authentication for outgoing email. If your server does require authentication, set optNumAuthType to 1 and then specify the username and password.
Please note that if your SMTP username and password are the same as your POP3 username and password, then you can skip optStrSMTPUser and optStrSMTPPassword. The project will automatically use the values from strUser and strPassword. InduSoft Web Studio Page 593 Function Group Execution Windows Embedded Thin Client CnfEmail Email Synchronous Supported Supported Supported