The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers > Answers to Frequently Asked Questions > How do I send email?
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-24-2004
manojram manojram is offline
Registered User
  
 

Join Date: Aug 2003
Posts: 5
Send Mail with attachment and a body

Hi All,

I am using a shell script where i will be sending a mail with some text/message in it and an attachment.

The problem starts here:

i am not able to do both the things together. i.e., either i am able to send some message or an attachment.

the problem is not only with my script the mail command of unix is also outputing the same result. What i would like to know is, do i have to do some settings or please tell me what am i doing wrong.

from the command line i am using:

1.) uuencode pic.jpg pic.jpg | mail abc@xyz.com < body.txt

2.) (cat body.txt uuencode pic.jpg pic.jpg) | mail abc@xyz.com body.txt

and many more.

please help

Regards,
Manoj