RE: command to send mail
- To: "'Eric Gaumer'" <egaumer@pagecache.org>, "'David Roguin'" <nesdavid@gmail.com>
- Cc: "'Debian User List'" <debian-user@lists.debian.org>
- Subject: RE: command to send mail
- From: "Patrick Kirchner" <obecalp@ameritech.net>
- Date: Fri, 6 May 2005 15:39:21 -0500
- Message-id: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAvU/o8/DH1RGkkgCQJzrlyQEApQJE5wXM0hGkeQCQJzrlyQAAA3vZWwAAEAAAAGfhfnxdvtkRpLEAkCc65ckBAAAAAA==@ameritech.net>
- In-reply-to: <8396D6507348D611A49D0090273AE5C904A3C4D9@SHBMAIL01.earthtech.com>
> -----Original Message-----
> From: Eric Gaumer [mailto:egaumer@pagecache.org]
> Sent: Friday, May 06, 2005 3:28 PM
> To: David Roguin
> Cc: Debian User List
> Subject: Re: command to send mail
> David Roguin wrote:
> > Hello,
> > Do you know any command to send a mail with an attached file?
> mutt email@ddress -a <file> -s "Subject of email" < email_body
> Eric Gaumer
> Debian GNU/Linux PPC
> egaumer@pagecache.org
> http://egaumer.pagecache.org
> PGP/GPG Key 0xF15D41E9
I don't mean to hijack this thread, but I've always done this:
mutt -s SubjectHere -a /path/to/attachment someone@somewhere.com < /dev/null
It's nice because the e-mail just goes with the attachment and
no further prompts are needed, but how does the "email_body" fit into this?
If I try Eric's example I'm told:
-bash: email_body: No such file or directory
Patrick.
Reply to: