[vox-tech] sending mail from shell
Henry House
vox-tech@lists.lugod.org
Tue, 20 Jan 2004 15:39:32 -0800
--9jxsPFA5p3P2qPhR
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
P=E5 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=
=20
> > be used to send simple emails from shell? It must be very basic, but m=
y=20
> > gentoo install is missing it.
> >=20
> > Jonathan
> >=20
> > _______________________________________________
> > vox-tech mailing list
> > vox-tech@lists.lugod.org
> > http://lists.lugod.org/mailman/listinfo/vox-tech
>=20
> You need to emerge mailx =20
>=20
>=20
> Oddly, I don't even see a sendmail on my system(usually its just a
> symlink to whatever MTA in use)=20
>=20
> However mailx should be functionally equiv to the mail command on unix
> systems.
True, with one important difference: mailx supports escapes (special comman=
ds
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>
<control-d>
This is particularly important in web form-to-mail scripts.
--=20
Henry House
The unintelligible text that may follow is a digital signature.=20
See <http://hajhouse.org/pgp> for information. My OpenPGP key:
<http://hajhouse.org/hajhouse.asc>.
--9jxsPFA5p3P2qPhR
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFADbw0i3lu92AVGcIRAhIWAJ46JWXjkg4aUHF06auJBB47CvDt6QCfdn45
Es2QzaEMuXsECIox3OBgzZw=
=WqUq
-----END PGP SIGNATURE-----
--9jxsPFA5p3P2qPhR--