The LOGFAILURE (or LF) argument allows capturing failed email sending attempts (an SMTP downtime, a network timeout, a misspell in recipient name, etc.) to the specified log file in a plain text format.
Command syntax
- febootimail -LOGFAILURE bad-mail.log
- febootimail -LF \\server.local\
Share\ email\ failed-email.log
By allowing to capture basic error information (a date, a time, a sender, a recipient and the errorlevel) to the dedicated log file of your choice, febootimail greatly facilitates overview and management of unsuccessful email sending attempts. By reviewing an error log, it is possible to identify failed emails easily, and resend them if necessary.
febootimail -SERVER smtp.example.net -FROM ed@example.net -TO jackson@example.com -TEXT "Sending a mail from the CMD with email logging (only failed messages)" -LOGFAILURE D:\Email\Problems.log
It is a good practice to record both full log and error log (both in separate files), thus allowing to review full email sending history. In some environments and depending on business requirements, it is acceptable to not perform any logging at all.
Related commands
Quick look
- Quick start · start sending the CMD email in minutes
- Tips & Tricks · a few quick email tricks
- Email attachments · use simple wildcards or advanced file masks to attach multiple files
- Debug email client-server connection · use DEBUG and advanced DEBUGX commands
- Parameter substitution using USEFILE and CONFIG · use a text file as any parameter
- Batch file & errorlevels · errorlevel values can be used in conditional processing
- Command Line Email parameters · see all email commands
Need help?
If you have any questions, please do not hesitate to contact our support team.