Zoomed Image

AMSX Scripting Language - Command : sendemail

Summary

Send an email to one or more recipients

Description

Sends an HTML email via the CDO mail system. If the message body argument is blank, the current result buffer is used as the body instead. Multiple recipients can be separated by commas or semicolons. Multiple attachments can be separated by the ^ character.

Parameters

ParameterDescription
cmdTo address(es), comma or semicolon separated
Argument 0CC address(es); leave blank for none
Argument 1BCC address(es); leave blank for none
Argument 2Email subject
Argument 3HTML message body; leave blank to use the result buffer
Argument 4Attachment file path(s), ^ separated; leave blank for no attachment
Argument 5From email address; leave blank to use the system default

Syntax


SendEmail "To address(es), comma or semicolon separated", "CC address(es); leave blank for none", "BCC address(es); leave blank for none", "Email subject", "HTML message body; leave blank to use the result buffer", "Attachment file path(s), ^ separated; leave blank for no attachment", "From email address; leave blank to use the system default"

Return to the AMSX Command Reference