This page provides information on how to use -LOG command when sending DOS mail with febooti Command line email utility.
-LOG command has been implemented since Command line email version 1.2 to allow gathering some general data on mail sending processes. Data is saved in plain text format file, specified after the -LOG parameter.
Example 1: saving log file in folder from which Command line utility is executed
C:\>febootimail -FROM john@sender.com -TO mike@recipient.com -TEXT "Sending command line dos mail and logging the results in working folder" -LOG file.log
Example 2: usage of -LOG command to save log file in folder specified
C:\>febootimail -FROM john@sender.com -TO mike@recipient.com -TEXT "Sending DOS mail and logging the results" -LOG "C:\Documents and Settings\john\logs\logfile.txt"
It is also possible to log more detailed debug information by using -DEBUG command and adding >>logfile.txt at the end of command line. Example 3: saving alternative log file with full parameter list
C:\>febootimail -FROM john@sender.com -TO mike@recipient.com -TEXT "Sending DOS mail with logging debug information" -DEBUG >>logfile.txt
Notes
Parallel to or instead of using -LOG command it is possible to process errorlevels to create your own log file.
logged ErrorLevel 0 (e-mail(s) sent without errors) means that all messages were accepted by SMTP server. The further delivery of message to end recipient does not depend of Command line email and normally report of further errors is returned to address specified in -FROM field.