Uuencode problem in mail attachment


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Uuencode problem in mail attachment
# 1  
Old 03-15-2006
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 of characters such as "begin 644 test.dat.gz
M'XL(".XO%T0 V-I<V9I0C$W,#%S+F1A= #LG<MZVSB6Q_?]%%A6?9VH<"7!
M)431,MT4J2(E5<4[5^+N]GR)79/+8MZAGVC>:!:SFA>8<P!2HBU1@M*JBASC
M+!R&^HL"0! _'EP.+B?9.%]49)+760K_9B5)EUFY,&1LRM34N2%/K;Y]^_#Q" parsed in the body of the mail.
Any ideas?
# 2  
Old 03-15-2006
Yes I have an idea... but first put your script here so I can see what's going on.
# 3  
Old 03-15-2006
It goes something like this...

gzip test.dat
uuencode test.dat.gz test.dat.gz | mailx -s "Uuencode Test file" mymail@hotmail.com

coderetour=$?

if [ $coderetour -ne 0 ]
....
# 4  
Old 03-15-2006
Your script looks fine to me and works on my side. What is your mail server? A Windows box or your Unix box? Try to send that mail to another Unix account to see if it has something to do with mail going out?
# 5  
Old 03-15-2006
As I said before, the same script has been working fine for quite some time.
The only evident difference I can think of is that it's growing in size. Nowadays it's measuring more than 3MB.
Can this have something to do? Should this be a problem?
# 6  
Old 03-15-2006
That is why I am asking what your mail server is. It may not be your script if that script hasn't changed. But it could be something to do with your mail sever not accepting mail with attachment bigger that 2 MB. Check your mail server too. Are you positive that they were no change to your mail server?
# 7  
Old 03-15-2006
You can test your SMTP server by telneting to port 25 and entering the EHLO command.
Code:
 $ telnet yourSMTPhost 25
Trying...
Connected to yourSMTPhost.yourdomain.com.
Escape character is '^]'.
220 message showing your mail service and version 
ehlo somedomain <== You type this in 
250-yourSMTPhost.yourdomain.com Hello [IP ADDRESS]
... some parameters ...
250-SIZE 2097152 <== This is what you are looking for (2 MB limit)
... some more parameters ...
250 OK
QUIT <== Don't forget to quit

Size is your limit.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem in sending mail with attachment

Hi Team, I have written the following code snippet to send mail with attachment to recipient. But I am getting mail with attachment. But the file is empty. All the 3 Attachment* size is more than 80KB. Not sure what is wrong in the command. MSG_BODY1="hi" LOG_FILE="a/b/c/log1.log"... (2 Replies)
Discussion started by: kmanivan82
2 Replies

2. AIX

Need to send attachment in Mail without using uuencode via script in AIX6.1

Dear All, Would some one help me with this to send a file as attachment in a mail using a script without uuencode... I am working on AIX 6.1, the thing is I dont have uuencode available... Is there any other alternate possible way to send file attachment with the mail without using uuencode... (11 Replies)
Discussion started by: msmadhan11
11 Replies

3. Shell Programming and Scripting

How to send attachment without using uuencode

H All I want to send attachment in mail but I dont have uuencode installed in AIX server, there is any alternative way to send attachment in mail. (2 Replies)
Discussion started by: ns64110
2 Replies

4. Shell Programming and Scripting

Problem in Sending mail as an attachment

Hi, I need to send a email as a txt file and i used the commands, (echo `echo $EMAIL_MSG` ; uuencode "file.txt" "file.txt" ) | mailx -s "$EMAIL_SUBJECT" "$EMAIL_ID" I received email with a attachment with all data but i get all of them in one row. For example: If file.txt contains value... (1 Reply)
Discussion started by: skcvasanth
1 Replies

5. OS X (Apple)

Problem with mail attachment in Snow Leopard

Hi, We have few scripts that are run through jobs . It sends us daily reports (using mailx). This was working fine in Leopard. But in Snow Leopard there is problem with the attachments.Neither the attachment name is being displayed correctly(all it displays is "Mail Attachment") nor the format... (1 Reply)
Discussion started by: adash
1 Replies

6. Shell Programming and Scripting

UUEncode Attachment Missing

Hi All, I have created a shell utility that runs various database jobs and then mail the output of the database jobs to the customers. This is a generic utility and executes almost 15 reports and sends the results out. To send the attachment I use uuencode. This had been working fine till... (4 Replies)
Discussion started by: anonymoususer45
4 Replies

7. UNIX for Dummies Questions & Answers

uuencode without attachment

Hi All, I'm using uuencode to send out mail from unix to lotus notes,but i dont have any attachment to send out, I'm getting this message in the body of the mail "Usage: uuencode remotedest" however if i dont use uuencode I'm not able to send out mail Please help Thanks (1 Reply)
Discussion started by: gwrm
1 Replies

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

9. Shell Programming and Scripting

Problem with Mailx command to send mail with attachment

Hi, I am using mailx command to send a mail with attachment. It's working fine, but with attachment I am getting one extra attachment like (ATT00131.txt). I have tried to use unix2dos command also. But still I am getting the extra attachment. I am using the following code: subject="temp... (5 Replies)
Discussion started by: viswanatharv
5 Replies

10. UNIX for Advanced & Expert Users

send attachment without uuencode

Hello - In unix, can you tell me IF there is a way to send attachments via email without using uuencode command? Thank you (3 Replies)
Discussion started by: panchpan
3 Replies
Login or Register to Ask a Question