Sending email from the batch files is easy and straightforward. Prerequisites: PC with Microsoft Windows, and you will need to install febootimail. Free download is available.
Simple batch file (example.bat) with self explanatory command syntax:
C:\>febootimail -FROM firstname.lastname@example.org -TO email@example.com -SUBJ It works! -TEXT Sending first email from a batch file -SMTP smtp.example.com
Note that most of the commands does not require any explanation. The command SMTP specifies outgoing server. It is not possible to send email without SMTP server. If you do not have one, you can use Gmail's server · View example.
Sending all .pdf files from the folder in one go:
C:\>febootimail -FROM firstname.lastname@example.org -TO email@example.com -SUBJ Report -TEXT Please see and review my attached report files -ATTACH "C:\Report files\*.pdf" -SSL -SMTP mail.example.com
If you have any questions, please do not hesitate to contact our support team.