Re: command to send mail
- To: debian-user@lists.debian.org
- Subject: Re: command to send mail
- From: Jacob S <stormspotter@6Texans.net>
- Date: Fri, 6 May 2005 15:54:29 -0500
- Message-id: <[🔎] 20050506155429.2beb9ea6@jacob.6texans.net>
- In-reply-to: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAvU/o8/DH1RGkkgCQJzrlyQEApQJE5wXM0hGkeQCQJzrlyQAAA3vZWwAAEAAAAGfhfnxdvtkRpLEAkCc65ckBAAAAAA==@ameritech.net>
- References: <8396D6507348D611A49D0090273AE5C904A3C4D9@SHBMAIL01.earthtech.com> <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAvU/o8/DH1RGkkgCQJzrlyQEApQJE5wXM0hGkeQCQJzrlyQAAA3vZWwAAEAAAAGfhfnxdvtkRpLEAkCc65ckBAAAAAA==@ameritech.net>
On Fri, 6 May 2005 15:39:21 -0500
"Patrick Kirchner" <obecalp@ameritech.net> wrote:
> > -----Original Message-----
> > From: Eric Gaumer [mailto:egaumer@pagecache.org]
> > Sent: Friday, May 06, 2005 3:28 PM
> > > 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
>
> 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
Actually, it's exactly what the error message indicates. The '<' tells
the shell to pull the contents of a file in the current directory named
'email_body' and pass it off to mutt. Mutt then uses it as the text for
the body of the e-mail.
HTH,
Jacob
Reply to: