Subject: Re: How to send mail in Unix command line directly. (fwd)

From: Murphy <[email-masked]>
Date: Wed, 12 Sep 2001 14:41:39 +0200 (MEST)

>On Tue, 11 Sep 2001, Eric Wu wrote:
>
>> Could someone tell me how to use Pine to send
>> email from Unix command line directly ?
>
>It depends on what you mean. You could start pine with recepient address
>directly on the command line, and even give a file to attach. Then you
>enter the mail editing mode. When you have sent the mail, you'll be back
>on the command line:
>
>pine -attach /etc/passwd [email-masked]

I think the edit mode is the problem for him. I'm tryed to do this
with pine, but I couldn't force it to do not enter in the edit mode.
Finally for the sending e-mails from the command line I choose the
"mutt" which is good for this task. For example:

cat text_body_file.txt | mutt -s "Subject" -a "attachment_file.zip" -x [email-masked]

For the normal reading I'm still using the PINE, which is better for
this.

Regards,
Murphy

-- 
  __   __
  ||   ||
 -++- -++- --------------------------------------------------------
  ||\ /||  [email-masked]                   [email-masked]
  ||   ||
  ||   ||  Everything is possible - this is only a question of time
  \/   \/  --------------------------------------------------------
    564

---

From: Eduardo Chappa <[email-masked]>
Date: Wed, 12 Sep 2001 08:16:29 -0700 (PDT)

*** Murphy ([email-masked]) wrote in the pine-info list today:

:) I think the edit mode is the problem for him. I'm tryed to do this
:) with pine, but I couldn't force it to do not enter in the edit mode.

If you do not want to enter the edit mode, try a patch that I wrote which
you can get from my web page (address below).

:) Finally for the sending e-mails from the command line I choose the
:) "mutt" which is good for this task. For example:
:)
:) cat text_body_file.txt | mutt -s "Subject" -a "attachment_file.zip" -x [email-masked]

Mutt is still known to have some bugs when sending mail from the command
line and corrupting attachments (the last known case is a pdf file), so
even some participants in comp.mail.mutt do not recommend to do this and
they recommned to use mpack.

-- 
Eduardo
http://www.math.washington.edu/~chappa/pine/