Projects / sendEmail

sendEmail

SendEmail is a lightweight, completely command line-based SMTP email delivery program. If you have the need to send email from a command prompt this tool is perfect. It was designed to be used in bash scripts, Perl programs, and Web sites, but it is also quite useful in many other contexts. It is written in Perl, and is unique in that it requires no special modules, and supports any platform that runs Perl. It has a straightforward interface, making it very easy to use.

Tags
Licenses
Operating Systems
Implementation

Recent releases

  •  29 Sep 2009 20:17

    Release Notes: This release fixes password authentication bugs that have plagued many users. It has better detection of HTML messages, and a new command line option for forcing the message to be sent as plain text or HTML.

    •  27 Dec 2006 21:27

      Release Notes: A new command line option to specify a local bind address. EHLO should never send "localhost" now. A small change to how the time zone is sent. The Windows executable now has TLS support enabled.

      •  30 Oct 2006 18:36

        Release Notes: TLS support is now included. To enable it, simply install the Perl Net::SSleay and IO::Socket::SSL modules. The "-o message-header" option may now be used more than once, and may now be used to override automatically generated email headers. Authentication code now supports the SASL PLAIN mechanism. An annoying bug that made some MUAs believe there was always an attachment when there wasn't has been fixed. A new base64_encode() function fixes a bug that was causing certain usernames/passwords used with -xu and -xp to not work properly.

        •  21 Feb 2005 22:21

          Release Notes: A bug that prevented 1.51 from working properly on Windows and Mac systems has been fixed. Null command line arguments are allowed again. Shell escape codes are printed for colored help on everything but Windows. The default MIME-encoding header has been changed to "application/octet-stream" rather than "base64" when it can't guess any other content-type to use. A -o message-charset option has been added to specify the message body's character set.

          •  03 Dec 2004 12:10

            Release Notes: A few alarm() calls causing issues on Win32 systems were fixed. An -o message-format=raw option was added to allow sending of raw pre-built email messages. A new method of detecting the hostname was added.

            Recent comments

            13 Nov 2003 12:52 simix

            Re: Superfluous software

            > % This whole program could easily be
            > % replaced by a lightweight bash
            > function
            > % utilizing netcat.
            >
            >
            >
            > No need for netcat with bash 2:
            >
            > #!/bin/bash
            > function smtp_send() {
            > {
            > echo "HELO $(hostname -f)"
            > echo "MAIL FROM: me@mydomain.com"
            > echo "RCPT TO: you@yourdomain.com"
            > echo "DATA"
            > echo "Message-ID:
            > /dev/tcp/myserver/25
            > }

            Oh, nice, where are the other lines...

            13 Nov 2003 12:51 simix

            Re: Superfluous software
            % This whole program could easily be
            > replaced by a lightweight bash function
            > utilizing netcat.

            No need for netcat with bash 2:

            #!/bin/bash
            function smtp_send() {
            {
            echo "HELO $(hostname -f)"
            echo "MAIL FROM: me@mydomain.com"
            echo "RCPT TO: you@yourdomain.com"
            echo "DATA"
            echo "Message-ID: /dev/tcp/myserver/25
            }

            13 Jun 2002 03:17 ian10

            Re: Superfluous software

            > ... without checking the
            > SMTP server's return code....

            I think this is fixed as of v1.33. Otherwise, I
            find sendEmail easy (easyest) to install
            and easy to use.

            11 Apr 2001 17:42 tilj

            Re: Superfluous software

            > This whole program could easily be
            > replaced by a lightweight bash function
            > utilizing netcat.


            I'd be very interested in pointers to information on how do that. I'm trying to send mail notifications out of a chrooted cvs environment, and I'd prefer not to ptu a "full-featured" (blah) MTA or, for that matter, perl in my chroot.

            09 May 2000 13:47 sn

            Superfluous software
            This is still just a perl script, so it's nowhere even near being "extremely lightweight".
            As of version 1.20, it still has a major bug: After sending the email, it immediately returns with
            a "sent ok" status, without checking the SMTP server's return code. That's what you get if you don't use the well tested, RFC compliant standard perl modules and reinvent the wheel instead.


            This whole program could easily be replaced by a lightweight bash function utilizing netcat.

            Screenshot

            Project Spotlight

            OpenStack4j

            A Fluent OpenStack client API for Java.

            Screenshot

            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.