On Fri, Mar 08, 2002 at 05:16:03PM +0530, S.K.Goel wrote:
> I send mail from my linux server using following command :-
> 
> mail [EMAIL PROTECTED] -s "test mail" <  /root/test
> 
> using this command contents of file test go to the mail-id
> [EMAIL PROTECTED]
> 
> Now I have 2 problems.
> 
> 1. This mail shows that from mail id as: [EMAIL PROTECTED]
>    (I want to change this)
> 

The From address cannot be tinkered through mail. Need to do it
through sendmail -f ... why not use a MUA like mutt instead ?

>
> 2. I want to send file test as a attachment.  But  using  mail 
>    command I am unable to do so.
> 

AFAIK, it is not possible to send atts through mail. If you want
it sent from the command line, use some MUA to do the job.  mutt
is quite capable of command line atts (see LOST #225 below). You
may also like to explore the  send  and  sendfiles programmes in
the nmh package for such jobs.

HTH

Bish

--
:
####[ Linux One Stanza Tip (LOST) ]###########################
 
Sub : Sending attachments from command line (#1)     LOST #225
 
If you have mutt installed, do:
mutt [EMAIL PROTECTED] -a /tmp/file.tar.gz \   
                           -s "subject line"   \   
                           -x < message.txt        

####<[EMAIL PROTECTED]>####################################
:

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to