RE: command to send mail
- To: "'Eric Gaumer'" <gaumerel@ecs.fullerton.edu>, "'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 16:52:10 -0500
- Message-id: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAvU/o8/DH1RGkkgCQJzrlyQEApQJE5wXM0hGkeQCQJzrlyQAAA3vZWwAAEAAAAC3ofnxdvtkRpLEAkCc65ckBAAAAAA==@ameritech.net>
- In-reply-to: <8396D6507348D611A49D0090273AE5C904A3C4E0@SHBMAIL01.earthtech.com>
> -----Original Message-----
> From: Eric Gaumer [mailto:gaumerel@ecs.fullerton.edu]
> Sent: Friday, May 06, 2005 4:05 PM
> To: Debian User List
> Subject: RE: command to send mail
> Patrick Kirchner wrote:
> > 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
> email_body is the text of the email you want to send (outside
> the attachment).
> The redirection operator ( < ) tells bash to use that text as
> STDIN to mutt.
> --
> Eric Gaumer
> Debian GNU/Linux PPC
> egaumer@pagecache.org
> http://egaumer.pagecache.org
> PGP/GPG Key 0xF15D41E9
Now I get it, so if I have the file "email_body" with the text
in it, I don't need the "</dev/null" bit.
Thanks much,
Patrick.
Reply to: