Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Zip attachment does not work in email

Status
Not open for further replies.

unixwhoopie

Programmer
May 6, 2003
45
US
I am trying to send out an email that has a zipped attachment. But the attachment is going in the body of the mail instead of a seperate attachment.

I am using gzip to zip the file.

(cat myrep.txt; uuencode $attach myrep1.tar.gz) | mailx -s "${sub}" "${email}"

The email is going to the correct recipient...problem is only with the attachment. Not sure what I am doing wrong. Any ideas are appreciated.

Thanks
 
Craig,

Actually, the issue I am having is specified in the link you provided

'If the remainder
appears as random characters in the message body, instead of as
attachments, then you'll have to extract these parts and decode them
manually.'

I am not sure how to fix...users are receiving the emails as random characters. Any ideas?

Thanks
 
I am using info-zip to zip up the attachment. I let the script uuencode the attachment.

What is your mail server/client?

With groupwise, and lotus notes there seems to be some issues with uuencoded attachments.



Craig

 
What is info-zip? Is it similar to gzip?

Our mail server is Lotus Notes....any work arounds to use this with lotus notes? ...

Thanks
 
Info-zip is similar to gzip.

From my understanding of Lotus Notes, which is VERY limited, it has a problem with uuencoded attachments.

The only thing that I can think of is to change the line in the mail_files script that identifies the attachment from
Uuencode to identify the attachment as X-UUENCODE.

I don't know for sure if this will even help, but it worked for me with groupwise.



Craig

 
Try attaching it complying with the MIME RFC and you'll have a lot more luck interoperating between mail systems.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top