12.4.22.6   MAIL to_add

Description:   Adds another email address that the mail will be sent to, in a form like recipient@company.com 

Syntax:

tcl:              MAIL {to_add=recipient2@mailserver.com}

JScript:        MAIL("to_add=recipient2@mailserver.com");              

VB Script:      MAIL "to_add=recipient2@mailserver.com" 
  

Argument:    "to_add=",  valid email address
 

See Also:       MAIL, MAIL "cc=", MAIL "bcc="

 

Examples:      MAIL {to_add=webaccess@yourcompany.com}

MAIL to_add=webaccess@yourcompany.com
MAIL "to_add=Supervisor1 <info@yourcompany.com>"

MAIL {to_add=@tag2}

MAIL "to_add=$variable"

A valid email address should specify the email address that mail will be `TO', in a form like tcarter@yourcompany.com or -from "Tom Carter <tcarter@yourcompany.com>". The address is added to the "To:" header and to the list of recipients. Can be repeated as many times as required to build a list of multiple recipients

Must be specified before each MAIL "send" command. MAIL "send" clears the buffer of any previous MAIL "to_add" entry.