Subject: How to send mail in Unix command line directly.

From: Eric Wu <[email-masked]>
Date: Tue, 11 Sep 2001 17:35:22 -0700 (PDT)

Hi All,

I am new in this group.
Could someone tell me how to use Pine to send 
email from Unix command line directly ?
Thanks in advance!

Eric

__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Bill Schoolcraft <[email-masked]>
Date: Tue, 11 Sep 2001 17:42:06 -0700 (PDT)

At Tue, 11 Sep 2001 it looks like Eric Wu composed:

eric_z->Hi All,
eric_z->
eric_z->I am new in this group.
eric_z->Could someone tell me how to use Pine to send
eric_z->email from Unix command line directly ?
eric_z->Thanks in advance!
eric_z->

Well it wouldn't be pine that is used but providing your MTA is
working ok lets send yourself a file off the Unix machine your on.

(begin command)

mail -s "Mail Test for Eric" [email-masked] < /etc/passwd

(end of command)

--
Bill Schoolcraft
PO Box 210076
San Francisco, CA 94121
http://ForwardSlashUnix.com

"UNIX, A Way of Life."

---

From: Mats Dufberg <[email-masked]>
Date: Wed, 12 Sep 2001 12:21:34 +0200 (CEST)

> 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]

Mats

-----------------------------------------------------------------
Mats Dufberg                                 [email-masked]
Blåarvsgränd 42                                    +46-8-38 48 59
SE-162 45 Vällingby, Sweden                      +46-709-17 48 42

---

From: Bill Schoolcraft <[email-masked]>
Date: Wed, 12 Sep 2001 05:28:52 -0700 (PDT)

At Wed, 12 Sep 2001 it looks like Mats Dufberg composed:

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

Hmmm, didn't know that.  Could you add a "subject" to that pine
command ?

"UNIX, A Way of Life."

---

From: Mats Dufberg <[email-masked]>
Date: Wed, 12 Sep 2001 14:59:38 +0200 (CEST)

> Hmmm, didn't know that.  Could you add a "subject" to that pine

Yes, with the more general URL switch. Try

pine -url
'mailto:[email-masked]?subject=My%20subject&body=In%20my%20body'

on one line. The quotes are needed to prevent the shell from interpreting
"&" as a put-in-background command.

Mats