Appendix: Built-in Scripting Language Optional tag that causes the function to update its return value. This parameter is optional but you must use it when configuring this function for an object animation (e.g., Text Data Link, Position). Returned value Examples SendEmail This function sends an email message. Syntax SendEmail( strSubject , strMessage , strTo ) strSubject The subject of the email. strMessage The message body of the email, up to 255 characters long. strTo The email address of the intended recipient. Returned value InduSoft Web Studio Page 595 −2 Incorrect version of the INDMail.DLL library. −1 The INDMail.DLL library is corrupted.
0 SendEmailExt function is not being executed. 1 Still sending last email. Cannot execute the SendEmailExt function. 2 Last email was sent successfully. You can execute the SendEmailExt function again. 3 There was an error sending the last email. Execute the SendEmailExt function again.
Tag Name Expression Tag GetStatusSendEmailExt( Second ) Tag GetStatusSendEmailExt() Function Group Execution Windows Embedded Thin Client SendEmail Email Synchronous Supported Supported Supported Value Description 0 Success 1 Invalid format for strSubject 2 Invalid format for strMessage 3 Invalid format for strTo 4 Wrong number of parameters 5 Start Socket error 6 Error getting host IP Address (i.e., invalid SMTP server) 7 Error connecting to SMTP server 8 Error sending HELO command (i.e., initialization) 9 Error sending MAIL command (i.e., the "From" address) 10 Error sending RCPT command (i.e., the "To" address) 11 Error sending DATA (i.e., the message body) 12 Error sending SMTP authentication command