Problems sending an attached file with uuencode

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Problems sending an attached file with uuencode
# 1  
Old 09-09-2013
Problems sending an attached file with uuencode

I use uuencode in UNIX to send an attached .txt file to my e-mail.
The .txt file looks like this:

When the mail comes, with the attached file, it looks likt thuis:
field_1;field_2;field_3 ;1;2;3 ;4;5;6 ;7;8;9

The different lines are separated by a special return-sign the looks like a square. I try to paste a sample, but the square disappears.

I use this command:
uuencode HOME/test.txt test2.txt | mailx  -s "Test bestand"

Who can help me so the attached file looks the same like the original file?

Last edited by Scott; 09-09-2013 at 11:16 AM.. Reason: Please use code tags
# 2  
Old 09-09-2013
Sounds like a carriage return/line feed issue

This is common when transferring files to/from PC-based systems. Are you opening the file on a PC (your email)?
# 3  
Old 09-09-2013
Yes, I am opening the file via Outlook
# 4  
Old 09-09-2013
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Getting the Attached File in Email

Hi All, Is there a way on how to get the attached file in email using shell script? what i'm going to do? all i can see is to send and email but to get an attached file in email i don't find it. Please advise, Thanks, (4 Replies)
Discussion started by: znesotomayor
4 Replies

2. Shell Programming and Scripting

Sending multiple files using uuencode command

Hi All, I want to send multiple CSV file using below code. In Result folder, we have multiple CSV files. However, I want to catch only Summary CSV files. I was trying using *, % with different combination. However, not able to do so. From below code, I could send only one file... (1 Reply)
Discussion started by: Swapnil Mawle
1 Replies

3. Shell Programming and Scripting

Sending attachment with email without using uuencode and mutt

Hi All, do we have any option for sending attachment with email except using uuencode and mutt, because if i use these utilities then i will have to install them separately which is not feasible at time. please suggest on this. (2 Replies)
Discussion started by: lovelysethii
2 Replies

4. Shell Programming and Scripting

Sending an email with a body and attachments using uuencode

Hi, Im having a bit of an issue with using the uuencode command and sending out an email. My aim is to send an email out which has a body and also have attachments. Currently I can either get one or the other and not both on the same email. uuencode... (4 Replies)
Discussion started by: 02JayJay02
4 Replies

5. Shell Programming and Scripting

sending multiple files along with mail message using uuencode

Hi, I have a requirement to send a mail with multiple files attached to it and along with the text message in the mail. I am trying sumthing like below but it only sends me the text message and no files attached to the mail. ---------------------------------------- ( uuencode file1... (1 Reply)
Discussion started by: sachinkl
1 Replies

6. Shell Programming and Scripting

How to embed a html file in a mail sending from Linux box with uuencode or mailx?

How to embed a html file as subject in a mail sending from Linux box with uuencode or mailx or any other way? we do not want the file as attachment, it should be embedded in the mail subject. (2 Replies)
Discussion started by: johnveslin
2 Replies

7. UNIX for Advanced & Expert Users

Sendmail problems -- with sending mail

Hello, I am C. and I would like to send mail with Sendmail to my hotmail-account. But this doesn't work, the mail always returns in the file: /var/spool/mail/root. Probably there is something wrong with my SmartHost. I configured it like: define ( 'SMART_HOST','') -->... (1 Reply)
Discussion started by: caroline
1 Replies

8. UNIX for Dummies Questions & Answers

Email recipient problems with uuencode attachments

Most of my email attachments are fine, but some recipients get the email with the uuencode attachment included as "text" at the end of the body of the message. Has anybody seen this? It seems to happen most with yahoo, msn and other freebie email addresses. Thanks (1 Reply)
Discussion started by: Dave Miller
1 Replies

9. UNIX for Advanced & Expert Users

uuencode: command not found when sending mail in LINUX

HI all, When i run this command below i get this error: (cat /root/body.txt ; uuencode -m | mailx -s "completed" bash: uuencode: command not found Does anyone know why this is happening? Or is there any alternative to send mail with an... (2 Replies)
Discussion started by: bsandeep_80
2 Replies

10. UNIX for Advanced & Expert Users

Problems sending Mail

Hello everybody I already read all the posts about "how to send email" but i dont find the solution, i need to send a mail via commands. Into the mail i need to attach a file.txt how can i do that? Thanx. Lestat (2 Replies)
Discussion started by: Lestat
2 Replies
Login or Register to Ask a Question