From:                   "Rahul Garg" <[EMAIL PROTECTED]>
> well i am  trying to send mails thru sendmail in html but they are
> coming in html with tags and html not getting executed. how should i
> correct the prob.
> 
> open (MAIL, "|$mail_prog -t"); 
> print MAIL "To: $r_mailid \n" ;
>  print MAIL "From: $s_mailid \n" ;
>  print MAIL "Subject: $subject \n\n" ;

Drop one \n in the line above!

And add
        print MAIL "MIME-Version: 1.0\n";

>  print MAIL "Content-type: text/html\n\n";
> 
> 
>  print MAIL "$c_message" ;#####data  in html
> print MAIL "\n\n" ;
> 
>  close (MAIL) ;

You may also want to have a look at MIME-lite or Mail::Sender.

Jenda 



=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
                                        --- me

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to