SendSMTP is a free tool which can send emails and attachments from the command line.
This can be useful in a range of situations. The program could send you email alerts when a PC is turned on or off, for instance; when a backup job starts or finishes; when an application is launched, maybe when the system is idle. Or you could create a scheduled task which runs at regular intervals, sending you a program log or some other important file.
Configuring SendSMTP is easier than some similar programs, as it provides a simple GUI. Double-click SendSMTP.exe and an email dialog appears where you're able to enter From and To addresses, a subject line, body text and attachment, as well as specifying the usual low-level details (mail server name, port, user name, password and more).
After entering your information here, clicking "Send Message" should send your test email. If there are issues, a Log tab records SendSMTP's communications with the server, very helpful for troubleshooting.
Once you're able to send messages, clicking "Save Settings as Default" saves your details in an INI file. And with that complete, you can send emails from scripts using commands line this:
Replace [email protected] with your address, [email protected] with wherever you're sending the message, enter a custom subject line and body text, provide your own list of attachments (or leave them out entirely) and you're ready to go.
Or, if you need more control, SendSMTP has plenty of useful options. You're able to specify custom servers, credentials, mail agent and HELO names, CC and BCC addresses, and more. Entering SendSMTP /? displays the full list of commands.
v18.104.22.168 - 22/10/2016
- Added choice of text or html message ContentType.
- Shortened default Helo Name due to invalid size.
SendSMTP is a powerful email automation tool with a stack of features, but its GUI ensures the program is also very easy to set up.