12.10.7    Send an email

 

# Tcl example scr to send email

 

MAIL "subject=This is a subject."

MAIL "from=support1@yourcompany.com"

MAIL "to=info2@yourcompany.com"

MAIL "to_add=support3@yourcompany.com"

 

MAIL "cc="

MAIL "bcc="

MAIL "body=First \\\"a\\\" Line. "

MAIL "body_add=First Line also.\\n"

MAIL "body_add=Second Line.\\n\\n"

MAIL "body_add=Regards,\\n\\n"

MAIL "body_add=Tom"

MAIL "send"

 

// JScript

// Use only if server accepts relay MAIL("host=mailserver.com");

// Not usually needed MAIL("port=25");

MAIL("subject=PUT SUBJECT HERE");

MAIL("from=valid email address");

MAIL("to=recipient@compay.com");

MAIL("to_add=anotherrecipient@company.com");

MAIL("cc=anotherrecipient@company.com");

MAIL("cc_add=anotherrecipient@company.com");

MAIL("bcc=anotherrecipient@company.com  ");

MAIL("bcc_add=recipient@company.com ");

MAIL("body= Put message here. ");

MAIL("body_add=Another Line for message. ");

MAIL("send");

 

Rem VB Script

Rem  Use only if server accepts relay MAIL "host=mailserver.com"

Rem not usually neededMAIL "port=25"

MAIL "subject=PUT SUBJECT HERE"

MAIL "from=valid email address"

MAIL "to=recipient@compay.com"

MAIL "to_add=anotherrecipient@company.com"

MAIL "cc=anotherrecipient@company.com"

MAIL "cc_add=anotherrecipient@company.com"

MAIL "bcc=anotherrecipient@company.com  "

MAIL "bcc_add=recipient@company.com "

MAIL "body= Put message here. "

MAIL "body_add=Another Line for message. "

MAIL "send"