ValidateEmailAddrs

(VTScada-Layer function. Must be called with a leading backslash.)

Description: This subroutine validates a string of email addresses, and returns TRUE if the email addresses in the string are syntactically valid, or FALSE if they are not.
Returns: Boolean
Usage: Script or steady state.
Function Groups: Email
Related to: SendMail
Format: \ValidateEmailAddrs(EmailAddress)
Parameters:  
EmailAddress
Required. The string of email addresses to check.
Comments: Multiple addresses are assumed to be separated by semi-colons in the input string. This subroutine returns TRUE if the email addresses in the string are syntactically valid, otherwise, FALSE is returned.

ValidateEmailAddrs checks that each address has an @ symbol that is not the first or last character, and that each address has a dot appearing at least 2 characters after the @ symbol, with no dot appearing immediately after the @ sign, and no dot as last character.