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

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.