Sending email from the batch file

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 -TO -SUBJ It works! -TEXT Sending first email from a batch file -SMTP

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 -TO -SUBJ Report -TEXT Please see and review my attached report files -ATTACH "C:\Report files\*.pdf" -SSL -SMTP

The ATTACH command adds all .pdf files to the email from the Report files folder. The SSL parameter enables secure connection.

More reading:

If you have any questions, please do not hesitate to contact our support team.

© 2001–2019 Febooti Ltd.