Another mailx question

Hi
I am trying to send an html file as an attachment from AIX server and recieve it using Outlook 2007 client. I tried every possible command, such as:

uuencode file file | mailx -s "subject" me@mydomain.com
uuencode -m file file | mailx -s "subject" me@mydomain.com

All of them give me:

begin-base64 664 t
aHRtbAoKPHRhYmxlIGJvcmRlcj0iMSI+Cjx0cj4KPHRkIGFsaWduPWNlbnRlcj48Yj5TSUQ8L2I+
PC90ZD4KPHRkIGFsaWduPWNlbnRlcj48Yj5UU0I8L2I+PC90ZD4KPHRkIGFsaWduPWNlbnRlcj48
Yj5TQjwvYj48L3RkPgo8dGQgYWxpZ249Y2VudGVyPjxiPkRFVjwvYj48L3RkPgo8dGQgYWxpZ249
Y2VudGVyPjxiPlRJPC9iPjwvdGQ+Cjx0ZCBhbGlnbj1jZW50ZXI+PGI+VEE8L2I+PC90ZD4KPHRk

Could someone help please. I read almost every post on google but no success.

Use -m option with mailx to not add MIME header lines:

uuencode file file | mailx -m -s "Subject" user@domain.com

mailx on AIX does not recognize "-m". Also, fromo uuencode help, I found that -m will output mime.

OK, I didn't knew that -m is not supported.

How about using sendmail instead? Here is a thread in which I have posted an example.

Thanks a lot Yoda. I used the following in the header and sent it by sendmail. This worked, but I lost all the colors in the html. Did I miss any step?

From: me@my_domain.com
To: him@his_domain.com
MIME-Version: 1.0
Subject: Backup report
Content-Type: text/html
Content-Disposition: inline

It is difficult to say what is wrong without seeing what you did.

Did you put your file in attachment or body section? Can you post entire code?

Hi
I figured out the problem; it was the html code. After correcting it, everything was OK. Thanks a lot Yoda for your help.