Uuencode for mail attachments not working


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Uuencode for mail attachments not working
# 1  
Old 10-27-2014
Uuencode for mail attachments not working

Hi,

I'm trying to send mail with attachments using uuencode, but it doesn't work.

Command (also tried with mailx):
Code:
uuencode testfile testfile | mail emailadress

The email I get doesn't have an attachment, and has this in the message body:
Code:
begin 664 testfile
%=&5S=`H`
`
end

What's going wrong?
# 2  
Old 10-27-2014
uuencode is extremely old, mail clients are beginning to not understand it. I would try sending to a different email client first, to make sure it's actually going wrong, rather than just being received by a client which doesn't understand uuencode.
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 10-27-2014
Quote:
Originally Posted by Corona688
uuencode is extremely old, mail clients are beginning to not understand it. I would try sending to a different email client first, to make sure it's actually going wrong, rather than just being received by a client which doesn't understand uuencode.
Thanks, the client is not a problem as it works from another system running Solaris (this one is Red Hat). I just found out about the mailx -a option which also attaches files. I guess I'll use this.
# 4  
Old 10-27-2014
That option is not available on all systems. Hopefully it works for you.
# 5  
Old 10-27-2014
Quote:
Originally Posted by Subbeh
Thanks, the client is not a problem as it works from another system running Solaris (this one is Red Hat). I just found out about the mailx -a option which also attaches files. I guess I'll use this.
The sharutils package that used to provide uuencode was deprecated in rhel6, since mailx is able to send MIME attachments, as you have already figured out.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

uuencode is not working properly

Hello Everyone, I'm very new to the shell script. I'm trying to send multiple attachments in unix using uuencode command. Total I have 3 text files which should be send in mail. but I'm getting 6 files and 3 files with subject as file name. And the content is ` end I'm working... (6 Replies)
Discussion started by: narikivar
6 Replies

3. Shell Programming and Scripting

Not able to send multiple attachments using uuencode and mailx

Hi, I am seeing some junk characters when I attach the second file, given below is the logic I used. Please help me resolving the issue. ( uuencode file1.txt file1.txt.lst && uuencode file2.txt file2.txt.lst ) > attachment.txt cat body.txt attachment.txt > combinemail.txt mailx -m... (7 Replies)
Discussion started by: prasperl
7 Replies

4. Shell Programming and Scripting

uuencode not working for multiple files

Hi, I have gone through the other related post but are of no help for me I am sending multiple files as attachement. The first file comes fine as an attachement but the other files are coming as binary. For people with older version of email software they can see all attachements but... (1 Reply)
Discussion started by: pinnacle
1 Replies

5. Linux

uuencode not working

"uuencode" is not working for me kindly help me i am using Linux 2.4.9-e.72 enterprise #1 SMP Thanks, Anil (1 Reply)
Discussion started by: 150177
1 Replies

6. Solaris

mail with attachments

I want to send a mail with three attachments, but nothing happened. I tried it with mail and mailx. Are there special options for these commands or is it not possible to send mails under Solaris with attachments? Must there be special adjustments in the environment? Can anyone give an... (6 Replies)
Discussion started by: ninjadan
6 Replies

7. AIX

Send mail attachments and have a mail body

Hi, How can I send mail attachments from shell script (AIX) and have a mail body as well ? Thanks in advance. (1 Reply)
Discussion started by: shibajighosh
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 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. UNIX for Dummies Questions & Answers

mail attachments

I'm writing scripts on HP-UX. Is there a way to attach a file to a mail message. I don't want to imbed the data in the mail message. (1 Reply)
Discussion started by: Multithreaded
1 Replies
Login or Register to Ask a Question