Dear Lilian, Yes, the mail command has quite a few options ; But to test whether u are able to send the mail on command line type the following;
# echo "hello" | mail lilian.tw.chow@pccw.com
hope it helps.
-regs harshul
Harshul AT sintelli DOT com Copyright C 2002-2003 Sintelli Ltd. http://www.sintelli.com
-----Original Message----- From: linuxers-bounces@mm.ilug-bom.org.in [mailto:linuxers-bounces@mm.ilug-bom.org.in]On Behalf Of Sameer D. Sahasrabuddhe Sent: Tuesday, November 04, 2003 5:04 AM To: GNU/Linux Users Group, Mumbai, India Subject: Re: [ILUG-BOM]Linux mail from command
Next LUG meet: 9 Nov 2003 around 4 pm - VJTI -------------------------------------------- On Tue, Nov 04, 2003 at 11:17:50AM +0800, Chow, Lilian TW wrote:
Here is the my command
/bin/mail -a "From: Lilian Chow lilian.tw.chow@pccw.com" -s "Subject:
hello" lilian.tw.chow@pccw.com
and return errors are like these: /bin/mail: invalid option -- a
I guess the error message says it all ...
Usage: mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ... [- sendmail-options ...] mail [-iInNv] -f [name] mail [-iInNv] [-u user]
The mail command printed a standard "usage" messsage as a clue - these are the options available. Maybe reading the manpage for mail will help.
Sameer. -- Research Scholar, KReSIT, IIT Bombay http://www.it.iitb.ac.in/~sameerds/