SendEmail is a lightweight, command line SMTP email client. If you have the need to send email from a command line, this free program is perfect: simple to use and feature rich. It was designed to be used in BASh scripts, Batch files, Perl programs and web sites, but is quite adaptable and will likely meet your requirements. SendEmail is written in Perl and is unique in that it requires NO MODULES. It has an intuitive and flexible set of command-line options, making it very easy to learn and use.
NEW
- Fixed authentication errors caused by invalid base64 encoding. Thanks for dozens of people who reported this and even submitted patches! Sorry it took me so long to get this fixed. - Updated authentication code so it would try both AUTH PLAIN and AUTH LOGIN methods before giving up. This should make it even more robust. - Detect <!DOCTYPE in first line of the message body as an html email too. - Added command line option to force sending message as either text or html (also allows a manual content-type header).