Problem with uuencode


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Problem with uuencode
# 8  
Old 08-25-2011
Thank you for your reply.

I am still having the same problem. Please adive.

$ uname -a
Linux CORNERSTONE 2.6.18-128.1.14.el5 #1 SMP Mon Jun 1 15:52:58 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
# 9  
Old 08-25-2011
You mean, even with sendmail , you are getting a junk file "Hi.txt" as an attachment?

Regards
Ravi
# 10  
Old 08-25-2011
Hi Ravi,

Yes..Even after changing the code also I am getting the Hi.txt file.

(echo "Subject : Hi"
echo "Hi , This is a test mail"
uuencode myFile.CSV myFile.CSV) | /usr/sbin/sendmail myID@doma.com

Please advise
# 11  
Old 08-25-2011
strange, !!!. Try with out subject line ( changing subject line )/Body and by sending only mail with attachment.
# 12  
Old 08-25-2011
Hi Ravi,

I tried without subject line, this time I got ATT00063.txt along with myFile.CSV.

the ATT00063.txt file contains the same junc data.

`
end

Code : -


(echo "Hi , This is a test mail"
uuencode myFile.CSV myFile.CSV) | /usr/sbin/sendmail myID@doma.com

---------- Post updated at 01:16 PM ---------- Previous update was at 07:29 AM ----------

Hi,

Could you please help me on this.

~Smith

---------- Post updated at 07:12 PM ---------- Previous update was at 01:16 PM ----------

HI,

Could you please advise me is there any alternative way to overcome this issue or is it possible to use any other command which will send an attachment without any junk data.

please advise.
# 13  
Old 08-25-2011
When you send this email through sendmail/mail from UNIX, does it by any chance get routed to an exchange server for delivery to your inbox? If yes, then the ATT*.txt with junk is probably being converted or added by the exchange server.

Look at this URL on the same and a possible solution that your exchange admin will need to set.


Last edited by dude2cool; 08-25-2011 at 09:36 PM.. Reason: Added URL
This User Gave Thanks to dude2cool For This Post:
# 14  
Old 08-26-2011
When I execute the script I am getting *.CSV and also att*.txt files (att*.txt --> when there is no subject in mailx, if "Hi" is the subject then Hi.txt) attached and coming to my inbox.

I am not sure if the att*.txt has been created by the exchange server.

The att*.txt file contains only 2 lines dara : -

`
end

I need your kind support how to overcome this issue, is there any alternative commnnd which sends only *.csv, please share your thoughts, I will modify my code accordingly.

Thanks for your support
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

uuencode problem

Hi, I am making a shell script on HP-UX that will do some Oracle db query and fetch data. Then after formatting the output files (there are two files) in a csv format, I want to send them as email attachments. Unfortunately the email contains garbage. I could not find solution to the problem... (13 Replies)
Discussion started by: asutoshch
13 Replies

2. Shell Programming and Scripting

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... (2 Replies)
Discussion started by: prash184u
2 Replies

3. Shell Programming and Scripting

problem with uuencode

Hi everyone, I'm emailing a spool file to a person using mailx. I'm using uuencode to attach the file to the email. but am getting this error uuencode: ISO8859-15 to 646 conversion: Invalid argument Any ideas as to why. The code is below sqlplus -s user/password@database <<EOF set... (9 Replies)
Discussion started by: rjsha1
9 Replies

4. Shell Programming and Scripting

Problem with uuencode

i used below code to attach a file but it's not attaching the file but sendinf a simple mail uuencode ${discord_file} mail_list.txt | mailx -s "TEST MAIL" xxx@yahoo.com (3 Replies)
Discussion started by: punitpa
3 Replies

5. Shell Programming and Scripting

Uuencode

Hi All, I have a queryin the uuencode option. Actually i need to attach two files in a single mail. I am aware of attaching a single file using the command below. (echo " The first file ";uuencode file1 file1) | mailx -s " The files " venkidhadha@in.com However i am not sure what... (6 Replies)
Discussion started by: venkidhadha
6 Replies

6. UNIX Desktop Questions & Answers

uuencode for attachment giving problem

Hi All, I am using unix's sendmail utility to send mails with attacments. I am using the uuencode command for attachments (zip). When i send the mails to some account which is configured in the MS outook it opens/unzip the attachments with no problem. But the same attachments seems to be... (3 Replies)
Discussion started by: manojram
3 Replies

7. Solaris

uuencode and mailx problem

We are running solaris 9. I can send emails using mailx with no problems. I can send attachments using uuencode no problems. What I can't do is change the name to .txt or .doc or anything else using uuencode. The command I am using is: uuencode /tmp/AsetReports /tmp/AsetReports.doc | mailx -s... (2 Replies)
Discussion started by: zeekstern
2 Replies

8. Shell Programming and Scripting

Problem with uuencode

I a script i telnet port 25 and part of the attachment is echo "Content-type: application/msword; filename= "$3" " echo Content-transfer-encoding: base64 echo "Content-disposition: attachment; filename= "$3" " echo uuencode -m "$3" /dev/stdout $3 is a word document. When i send... (0 Replies)
Discussion started by: markms
0 Replies

9. UNIX for Dummies Questions & Answers

Uuencode problem in mail attachment

I have a unix script that compresses a .txt file using gzip command and then sends it by mail using uuencode. This has been working fine for some time, but lately I've been experiencing some problems, as when I open the mail generated, I don't see the attachment, but instead I get a large amount... (8 Replies)
Discussion started by: mvalonso
8 Replies

10. Shell Programming and Scripting

uuencode

hi all, I dont know of this is a duplicate thread, but the thread i started a while ago wasnot posted still. ok my question is i have a shell script named "mail_editck.sh". i have to include some reports in it so that i can get the email when they are done. the syntax goes like this. ... (2 Replies)
Discussion started by: tejasingaraju17
2 Replies
Login or Register to Ask a Question