[vox-tech] emailing an attachment
Henry House
vox-tech@lists.lugod.org
Thu, 26 Sep 2002 09:00:27 -0700
--HlL+5n6rz5pIUxbD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Thu, Sep 26, 2002 at 08:53:31AM -0700, Tim Riley wrote:
> Hi LUGOD:
>=20
> Does anyone know how to email an attachment
> from the command line?
>=20
> I would expect it to be:
> mail -s "Here is your graph" --attach-file graph.pdf foo@foo.com
The mail program is rather simple; I do not think that it supports MIME, the
encoding standard that make attachments and non-ASCII messages possible. Try
Mutt instead:
echo 'This is a test.' | mutt foo@foo.com -s 'Test' -a graph.pdf
--=20
Henry House
The attached file is a digital signature. See <http://romana.hajhouse.org/p=
gp>
for information. My OpenPGP key: <http://romana.hajhouse.org/hajhouse.asc>.
--HlL+5n6rz5pIUxbD
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9ky8bi3lu92AVGcIRAjPwAJ9croJI43mHMWnpyF3bRsUKRL09UQCghFgP
VUatZS3UUtt/WyzJziIKjUU=
=d7+Z
-----END PGP SIGNATURE-----
--HlL+5n6rz5pIUxbD--