General discussion
April 13, 2005 at 02:21 AM
priyo_p

Sending attachment from Unix via mail

by priyo_p . Updated 21 years, 5 months ago

Hi,
I want to use mailx or elm command to send one file residing on a particular location of the Unix server . the file has to be send as an attachment. Also the mail should have a subject.
I have tried using the following syntax :
uuencode gcc.txt gcc.txt | mailx -s “test” abc@yahoo.com

But the above command doesn’t works.
I am using HP-UX 11i version.
I have tried using mail command but though I am able to send the file as an attachment but the Unix version doesn’t supports to mention the subject by giving as -s “Subject”.

Can any one help in this matter by giving an example of how to do?
Its very urgent

regards,

Paul

This discussion is locked

All Comments