SendEmail |
Top Previous Next |
Syntax - SendEmail {<Recipient> <Subject> <Message>} [<Attachment1>] ... [<AttachmentX>] Where: <Recipient> is a literal string or a variable that contains a literal string. <Subject> is a literal string or a variable that contains a literal string. <Message> is a literal string or a variable that contains a literal string. <Attachment1> is a literal string or a variable that contains a literal string. <AttachmentX> is a literal string or a variable that contains a literal string.
Description: This command is used to send an e-mail to the e-mail address specified in <Recipient> with <Subject> displayed as the subject and with <Message> as the body of the e-mail. This command can be used at any point in the script. <Attachment1> through <AttachmentX> are the paths and filenames of files that will be attached to the e-mail. Email addresses can be separated my commas within the recipient field. The following replacements can be used in the <Subject> and <Message> fields of the SendEmail command.
Note: \n and \t may be used in the message body as a new line character and tab respectively. This allows for some formatting within the message. Since EMUE expects the backslash (\) to be an escape character, in order to write a backslash in the actual message body, it must be escaped with another backslash (\\).
Note: By default, EMUE enables encrypted communication with your SMTP email server, if that server supports TLS or SSL encryption (for the specified port). This encryption only encrypts the communication directly with the email server, and provides no protection beyond that point. Generally, email is not considered a secure form of communication, especially when emails are directed to parties external to your network via the internet. As a result, you must use caution when sending emails via EMUE to ensure that any email that may be routed outside of your organization does not contain any PHI.
Sample: The following statement sends an e-mail to someone@company.com with the script attached. Copy subject "Script Problem" Copy message "There was a problem with this script on line 24. Could you please look at it?" SendEmail "someone@company.com, anotheruser@company.com" SubjectVariable MessageVariable "C:\EMUE\Medicare\File.txt"
See Also:
|