Assume that you have a created an AngeliaMail configuration with 2 EMail Address Groups ("DONE" and "ABORT") and two SMTP Host Connections ("MYSMTP1" and "MYSMTP2"). Also assume that you have created a command file in the default folder named "AbortMessage.AMC" which selects MYSMTP1 as a host, ABORT as the included group, a subject line of "Program Aborted", enables logging, and message text path of "C:\MyProgram\MyProgram.Rpt". In addition, assume that you have created a second command file in the default folder named "DoneMessage.AMC" which selects MYSMTP2 as host, DONE as the included group, a subject line of "Program Completed", message body text of "Program Completed - My Report attached", enables logging, and an attachment path of C:\MyProgram\MyReport.Pdf. Finally, assume that MyProgram.Exe is located in a folder C:\MyProgram and that AngeliaMail.Exe is located in a folder C:\AngeliaMail.
The following two batch files segments are equivalent and will have the same effect:
First Example:
Second Example: This one uses command files.