actually this problem i am getting only when sending mail in gmail,
otherwise everywhere its coming correctly and fine

On 1/2/07, Anju Prasad < [EMAIL PROTECTED]> wrote:

Headers i am using:
$headers = "MIME-Version: 1.0*\r\n*
Content-type: text/html;charset=iso-8859-1*\r\n*Content-Transfer-Encoding: 8bit
*\r\n\r\n*From:$sitename*\r\n*
return-path:
$from";

Message body:


$message = '<html><body>Hi '.$_POST[name1
].' <br>'.$message.'<p>Regards</p><p> '
.
$sitename.' </p></body></html>' ;
Now tell is there any wrong in this syntax



On 1/2/07, Stut < [EMAIL PROTECTED]> wrote:
>
> Anju Prasad wrote:
> > I am doing that but still not getting any fruitful results.
>
> Show us exactly what you're doing. If your mail client is not displaying
> the email as HTML one of two things is happening. 1) You're not telling
> it it's an HTML email, or 2) your mail client is ignoring the headers
> and displaying the raw message. I'm gonna go with the former since
> hopefully you'd remember if you'd told your mail client to do the
> latter.
>
> -Stut
>
> > On 1/2/07, zoticaic <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>
> >> --
> >> > My Seeding Blog | http://bytes.nullp0inter.com
> >> > Hire me as Freelancer |
> >> http://www.getafreelancer.com/affiliates/shockx/
> >> > -----Original Message-----
> >> > From: Anju Prasad [mailto:[EMAIL PROTECTED]
> >> > Sent: Tuesday, January 02, 2007 5:13 PM
> >> > To: php-general@lists.php.net
> >> > Subject: [PHP] Please help me
> >> >
> >> > When I send a mail using php using mail(), and using html tags in
> >> message
> >> > body , these tags are being displayed as it is.
> >> > Please let me know if there's any way of how to tackle with this.
> >>
> >> You need to add some headers that should indicate that the type of
> mail
> >> you are
> >> sending is an HTML email.
> >>
> >> Take this link from our friendly manual and see through Example 4 :
> >> Sending HTML
> >> Emails
> >> http://www.php.net/manual/en/function.mail.php
> >>
> >> HTH
> >> Jervin
> >>
> >>
> >
>
>

Reply via email to