Please don't reply to me directly. Always include the list in replies.

Anju Prasad 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

There's something wrong with that syntax.

Assuming it's not your mail client wrapping the line above, you have two newlines between the MIME-Version header and the Content-Type header. This will cause the headers after MIME-Version to be ignored.

-Stut


On 1/2/07, *Stut* <[EMAIL PROTECTED] <mailto:[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]
    <mailto:[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]
    <mailto:[EMAIL PROTECTED]>]
    >> > Sent: Tuesday, January 02, 2007 5:13 PM
    >> > To: php-general@lists.php.net <mailto: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
    <http://www.php.net/manual/en/function.mail.php>
    >>
    >> HTH
    >> Jervin
    >>
    >>
    >



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to