Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending Attachment and message using mailx

Status
Not open for further replies.

Ambatim

Programmer
Feb 28, 2002
110
IN
Hello Gurus,

I am using the following command to send a mail with attachment. In this command I am not able to send the message in the mail.

uuencode <filename> <filename> | mailx -m -s&quot;<subject>&quot; <mail address>

If I do not want to send as an attachement then I can use the following command.

echo <message> | mailx -m -s&quot;<subject>&quot; <mail address>

How can I send both messaga along with an attachment.

Any Ideas ???

Regards
Mallik
 
Mallik,

There's an excellent FAQ in the general unix forum here on TT Mike
______________________________________________________________________
&quot;Experience is the comb that Nature gives us after we are bald.&quot;

Is that a haiku?
I never could get the hang
of writing those things.
 
Mallik,

try this :

(cat <message> ; cat <filename>| uuencode <filename> )| mailx -s&quot;<subject>&quot; <mail address>

Cheers René
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top