rajesh.vadde@gmail.com wrote:
> Hi all,
>
> I need some with unix shell scripts. i am trying to e-mail a html
> file as an attachment. I am using this code:
>
> rpt_mail=xyz@abc.com
> file=/home/usrid/test.htm
> subject=status report
>
> do_mail()
> {
> cat ${file} | mailx -s "${subject}" ${rpt_mail}
> }
>
> do_mail
>
>
> The problem with the above code is i am seeing all the html tags in the
> body of the e-mail. I want to see the html page in the body of the
> e-mail wthout any tags. Can any one know how to do this..
You will have to mime encode your html stuff before you pipe it to mail.
cheers
Erich