Afficher un message
Vieux 22/09/2006, 09h37   #2
mega
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: shell script to e-mail an attachment (html file)

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

  Réponse avec citation
 
Page generated in 0,05542 seconds with 9 queries