AttachToEmail

Top  Previous  Next

×V4.2.1Ø

S

A

W

WS

ü

ü

Syntax -

AttachToEmail <EmailType>  [<Attachment1>] ... [<AttachmentX>]

Where:

<EmailType> is one of the following keywords:  SuccessEmail, ErrorEmail, WarningEmail

                       <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:

The AttachToEmail command is used to attach one or more files to the Success Email, Warning Email, or Error Email.  This command allows any file accessible to the account that is logged into the computer to be attached to these emails.  The full path and file name must be used for each file that is attached.

While there are SetStartup settings that allow for the attachment of the input file, output log and activity file to the Success Email or Error Email (SuccessEmail_IncludeActivityLog, SuccessEmail_IncludeInputFile, SuccessEmail_IncludeOutputLog, ErrorEmail_IncludeActivityLog, ErrorEmail_IncludeInputFile, ErrorEmail_IncludeOutputLog), the AttachToEmail command provides a flexible way to add attachments to these emails at any point during script execution.

If the AttachToEmail command is used more than once for the same email type, additional files will be attached to the email specified.  Once a file has been attached using this command, there is no way to remove it.

If an attempt is made to attach the same file more than once, the email will still have only one copy of the attachment.  If the file does not exist or is not available, the email will be sent without the file.

 

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 uses the AttachToEmail to attach two additional files to the Success Email.

AttachToEmail SuccessEmail "T:\BusOffice\Remits\BC.txt" "C:\Providers.xlsx"

 

See Also:

SuccessEmail

WarningEmail

ErrorEmail

SMTPEncryption