[Ilugc] .a-tip-a-day (nail/mutt/mail - send mail from UNIX command line)
- From: mbhangui@xxxxxxxxx (Manvendra Bhangui)
- Date: Wed Nov 4 09:44:45 2009
On Wed, 2009-11-04 at 07:19 +0530, Girish Venkatachalam wrote:
With mutt you can send attachments from the command line like this:
$ mutt -a /tmp/attach.pdf -s "testing attachments" recipient@xxxxxxxxxx
You can also use mpack - pack a file in MIME format
in either of the two forms below
mpack [-s subject] [-d descriptionfile] [-m maxsize] [-c content-type]
file address ...
The below will generate outputfile in proper MIME format.
mpack [-s subject] [-d descriptionfile] [-m maxsize] [-c content-type]
-o outputfile
mpack is exactly meant for sending emails with all kinds of attachments
and does nothing else and hence it is a tiny executable which can be
used in shell scripts.
mpack can be downloaded at
http://sourceforge.net/projects/indimail/files/mailpack/mailpack-1.1/mpack-1.6.tar.gz/download
-- Manvendra Bhangui
http://www.indimail.org ;
GPG Pub Key
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC7CBC760014D250C ;
Let us be charitable, and call it a misleading feature :-) -- Larry Wall
in <2609@xxxxxxxxxxxxxxxxx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url :
http://www.ae.iitm.ac.in/pipermail/ilugc/attachments/20091104/6a3e781e/attachment.bin
Other related posts: