php email html link, but just showing up as html code

Posted by Idealflip on Stack Overflow See other posts from Stack Overflow or by Idealflip
Published on 2010-05-07T21:37:25Z Indexed on 2010/05/07 21:48 UTC
Read the original article Hit count: 513

Filed under:
|
|
|

Hi everyone, I'm trying to e-mail a html table, that has links within it. But when I receive the e-mail, it just shows me the html code itself.

I'm using PHP pear to send the email.

I try constructing a string like so

$body = "<table>";

$body = $body . "<tr><td><a href='http://google.ca'>Google</a></td></tr>";

$body = $body . "</table>";

then e-mailing it, but when I receive the e-mail, it comes like this

<table><tr><td><a href='http://google.ca'>Google</a></td></tr></table>

Any suggestions? Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about pear