uuencode and outlook attachment issue | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

uuencode and outlook attachment issue

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-19-2012
47shailesh 47shailesh is offline
Registered User
 
Join Date: Jul 2008
Last Activity: 3 April 2014, 3:45 PM EDT
Location: NY
Posts: 203
Thanks: 13
Thanked 39 Times in 38 Posts
Error uuencode and outlook attachment issue

Hello All,

I am using uuencode to attach multiple zip file in one email body. The file is send to multiple recipients. I use lotus notes and can view the attachments very well and so does the gmail and yahoo recipients.
Issue is with outlook users, they see attachment as garbage. This is the command I am using

Code:
(cat $MAIL_BODY ; uuencode reject.zip $FILE_NAME".zip") | mailx -s "$SUBJECT" -c $CC -r $REP_TO $TO

While doing search for a solution I found out Outlook can't read/distinguish attachment from uuencoded file and I have to use third party decoders.
On Unix side I found suggestions to use -m switch with mailx, which when I used got this error

Code:
mailx: illegal option -- m


Code:
mailx -a

is not an option for me as I have to compose one email with multiple body and their respective attachment following them, hence I am using uuencode

Please let me know what can be done to resolve this uuencode and mime format issue.

Last edited by 47shailesh; 03-19-2012 at 08:42 PM..
Sponsored Links
    #2  
Old 03-19-2012
methyl methyl is offline Forum Advisor  
Advisor
 
Join Date: Mar 2008
Last Activity: 18 April 2014, 5:13 AM EDT
Posts: 6,396
Thanks: 287
Thanked 672 Times in 642 Posts
Please post what Operating System and version you are using and what Shell you prefer. There is much variation in the "mailx" command.

There has been a long history of Microsoft badged products called "Outlook". Please mention the exact version of the Microsoft Operating system and the exact title and version of the "Outlook".

First thing I'd try is an echo . after the mail body to formally terminate the mail body.


Quote:
they see attachment as garbage
Please post a small sample of the header portion of the "gatbage".
Sponsored Links
    #3  
Old 03-20-2012
47shailesh 47shailesh is offline
Registered User
 
Join Date: Jul 2008
Last Activity: 3 April 2014, 3:45 PM EDT
Location: NY
Posts: 203
Thanks: 13
Thanked 39 Times in 38 Posts
I am on Suse-Linux 2.6.16 with bash
user is on Windows 7 I'll get back with the outlook version.

I added echo . but results were same:

Code:
(cat $MAIL_BODY ; echo . ; uuencode reject.zip $FILE_NAME".zip") | mailx -s "$SUBJECT" -c $CC -r $REP_TO $TO

Here is excerpt of how attachment looks in outlook

Code:
begin 644 profile
M97AP;W)T(%!23TI%0U1?2$]-13TO9&%T80IE>'!O<G0@2$]-13TO9&%T80IE
M>'!O<G0@3$]'3TY?1$E2/2]D871A+W!R;VIE8W0O8F]C=6)E=&PO;&]G;VX*

    #4  
Old 03-20-2012
frank_rizzo frank_rizzo is offline Forum Advisor  
Resident BOFH
 
Join Date: Dec 2007
Last Activity: 21 August 2014, 4:30 PM EDT
Posts: 1,136
Thanks: 2
Thanked 88 Times in 85 Posts
I think you need to format the attachment with a MIME utility. Not sure off hand if you can do this with mail/mailx but a simple Perl script can handle it.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to send attachment without using uuencode ns64110 Shell Programming and Scripting 2 02-15-2012 11:27 PM
Unable to see attachment in outlook express sent by UUENCODE through unix script apskaushik Shell Programming and Scripting 5 07-14-2010 05:22 AM
UUEncode Attachment Missing anonymoususer45 Shell Programming and Scripting 4 02-24-2010 01:58 PM
uuencode without attachment gwrm UNIX for Dummies Questions & Answers 1 02-08-2010 06:42 AM
send attachment without uuencode panchpan UNIX for Advanced & Expert Users 3 03-14-2008 09:08 AM



All times are GMT -4. The time now is 07:22 AM.