Question : UU encoded message comes up as plain text in Hotmail but not in Outlook?

Hi,

I have a ksh script that sends a text message as html and an enclosed file. It seems to work fine except that when I send the email to hotmail, it looks like hotmail doesn't recognize UUENCODED files...   When I look at the email with outlook, it looks fine, the file shows up in the "enclosed files" list.

Can anyone suggest a fix?

Here is the email I receive in hotmail:

myunixserver - 2009-06-01 - Sample Email Report
From:  Sample Emailer ( bubbaone ) ([email protected])  
Sent: June 1, 2009 11:53:28 AM
To:  [email protected]
Cc:  [email protected]
Report: This is the message content file -- hdnmstr  begin 664 enclosedcontent.bin95&AI!I;F-L;W-E9"!F:6QE"O(F`end
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
#!/usr/bin/ksh
echo "This is the message content file" > messagecontent.txt
echo "This is an enclosed file" > enclosedcontent.txt
 
uuencode ./enclosedcontent.txt enclosedcontent.bin > ./enclosedcontent.txt.uu1
 
/bin/cat > curemail.txt <
Subject: `hostname` - `date +"%Y-%m-%d"` - Sample Email Report

Report:
 
`/bin/cat messagecontent.txt`
 
-- `whoami`
 
^M
^M
^M
`/bin/cat enclosedcontent.txt.uu1`
UNIX.EOF
echo Sending email...
/usr/sbin/sendmail -t -oi < curemail.txt >/dev/null

Answer : UU encoded message comes up as plain text in Hotmail but not in Outlook?

Ok I meant the problem you initila message is that:
- The receiver hits
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
these lines first. When it sees the file it expects an atackment phrase like that:
Content-Type: multipart/mixed; boundary="===============0334752041=="
Mime-version: 1.0
Sender: [email protected]

--===============0334752041==
Content-Type: multipart/alternative; boundary=0015174be6ea54f973046aff5eb6
--0015174be6ea54f973046aff5eb6
Content-Type: text/plain; charset=ISO-8859-9
Content-Transfer-Encoding: quoted-printable
.
.
.

--0015174be6ea54f973046aff5eb6

Since your message body does not include such a part which would contain attachments it thinks that the rest is a text message. If you didn't have these two lines it would recognize the uuencoded attachment inside.Because before the MIME was introduced this was the dominant method to embed an inline image into a mail message. But since initially you've specified that the contents is a MIME encoded message you need to have different parts separated in MIME syntax.

So you need to either omit these lines and hope that the receiving MUA will render your attachments correctly or you need to install mutt or similar program so that it will enclose your attachments in MIME style parts into the mail.

Sorry I do lots of typos while writing :(

Random Solutions  
 
programming4us programming4us