nimo
March 27, 2013, 6:59pm
1
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.
Yoda
March 27, 2013, 8:44pm
2
Use -m
option with mailx
to not add MIME header lines:
uuencode file file | mailx -m -s "Subject" user@domain.com
nimo
March 27, 2013, 9:12pm
3
mailx on AIX does not recognize "-m". Also, fromo uuencode help, I found that -m will output mime.
Yoda
March 27, 2013, 9:28pm
4
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.
nimo
March 27, 2013, 9:55pm
5
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
Yoda
March 28, 2013, 12:25am
6
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?
nimo
March 31, 2013, 3:07am
7
Hi
I figured out the problem; it was the html code. After correcting it, everything was OK. Thanks a lot Yoda for your help.