Projects / sendEmail / Comments

Comments for sendEmail

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

ReciJournal

An open, cross-platform journaling program.

Screenshot

Project Spotlight

Veusz

A scientific plotting package.