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 > Shell Programming and Scripting
.
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 05-26-2009
prash184u prash184u is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 23
mailx, uuencode problem

I've this command to run ...

Purpose : Send attachment file with e-mail body...
( E-mail body i read it from text file)

uuencode TEST_FILE.csv TEST_FILE.csv | cat /usr/local/bin/EMAIL_BODY.txt - | mailx -s "TEST Report" -c receiver1@mail.com receiver2@mail.com


Here is the problem .. this command works beautifully in my development server and i get e-mail with body and attachment.

However in Production server i get e-mail but no attachment ... and attachment contents are at the end of the body as garbage data...

Any idea why and what could be wrong here?

I really appriciate your help....