Command Line Email FAQ—simple answers to complex questions.
Example
Example of a simple batch file, that sends a document as attachment. Email sending is done automatically, without any user interaction. Example of Send Document.bat
file:
rem This script requires febootimail.exe
rem Free download: www.febooti.com/downloads/
febootimail -FROM john@example.com -TO ted@example.com -TEXT See attached document -ATTACH c:\documents\report.xls
rem For more commands, see online help
rem www.febooti.com/products/command-line-email/commands/
Sending an email from a .bat file is very easy. You may need to add the SMTP server parameter (see email basics). You can use a free mail server (Gmail example). Remember, before running the script, download febootimail.
Related commands
Need help?
If you have any questions, please do not hesitate to contact our support team.