l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2004 Jan 20 16:30

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] sending mail from shell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] sending mail from shell

På tisdag, 20 januari 2004, skrev Michael J Wenk:
> On Tue, Jan 20, 2004 at 09:01:25AM -0800, Jonathan Stickel wrote:
> > What is the program/package which provides the 'mail' command that can 
> > be used to send simple emails from shell?  It must be very basic, but my 
> > gentoo install is missing it.
> > 
> > Jonathan
> > 
> > _______________________________________________
> > vox-tech mailing list
> > vox-tech@lists.lugod.org
> > http://lists.lugod.org/mailman/listinfo/vox-tech
> You need to emerge mailx  
> Oddly, I don't even see a sendmail on my system(usually its just a
> symlink to whatever MTA in use) 
> However mailx should be functionally equiv to the mail command on unix
> systems.

True, with one important difference: mailx supports escapes (special commands
in the stream, entered after a tilde). This is useful for interactive use
(but most folks perfer mutt, Evolution, etc) and downright dangerous when
handling arbitrary streams of input. In such cases you should use sendmail,
perhaps via a wrapper script, or directly like this:

$/usr/sbin/sendmail <recipient@host>
Subject: <your subject here>
<other headers as needed>

<message body>

This is particularly important in web form-to-mail scripts.

Henry House
The unintelligible text that may follow is a digital signature. 
See <http://hajhouse.org/pgp> for information.  My OpenPGP key:

Attachment: signature.asc
Description: Digital signature

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!