Hi all,
I am working on UNIX (Solaris28). I would like to send an email in which the body will be in html format and, in the same mail, a xls file has to be attached.
I have tried this: the file is correctly attached but the body comes as html source and not formatted. If I do not attach the file (I remove the "uuencode file.xls file.xls"), then theI receive the correct body format (the html is correctly formatted)
cat /tmp/body.html ; uuencode file.xls file.xls ) | /usr/lib/sendmail -t "myname@mydomain.com"
The body.html file contains the following text:
From:
myname2@mydomain.com
Content-Type: text/html
Content-Transfer-Encoding: 7bit
<html>
<head>
<title>Title of page</title>
</head>
<body>
This is my first homepage. <b>This text is bold</b>
</body>
</html>
I need to use the standard UNIX command : sendmail or mutt or mailx...
Any help would be greatly appreciated... asap please ;-)
Stefan.