Menu:


AngeliaMail Configuration Main Form - click to see it full size.


AngeliaMailTM - On-Line Help - Command Line Examples




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:

C:\MyProgram\MyProgram.Exe [parameters]
if errorlevel 1 goto aborted
C:\AngeliaMail\AngeliaMail.Exe /HMYSMTP2 /TDONE /L* "/SProgram Completed" /AC:\MyProgram\MyReport.Pdf         "/MProgram Completed - My Report Attached"
if errorlevel 1 goto emailabort
goto programdone
:aborted
C:\AngeliaMail\AngeliaMail.Exe /HMYSMTP1 /TABORT /L* "/SProgram Aborted" /FC:\MyProgram\MyProgram.Rpt
if errorlevel 1 goto emailabort
:emailabort
echo AngeliaMail Aborted - review log
:programdone


Second Example: This one uses command files.

C:\MyProgram\MyProgram.Exe [parameters]
if errorlevel 1 goto aborted
C:\AngeliaMail\AngeliaMail.Exe /DDoneMessage
if errorlevel 1 goto emailabort
goto programdone
:aborted
C:\AngeliaMail\AngeliaMail.Exe /DAbortMessage
if errorlevel 1 goto emailabort
:emailabort
echo AngeliaMail Aborted - review log
:programdone