Jump to content

[SOLVED] How do you add HTML to Out going mail()


kpetsche20

Recommended Posts

 $message = "Dear Friend, I have found this great site where you get paid to do your online shopping just CLICK HERE and check it out. for now
<a href=\"http://www.tyest.co.uk/index.php?p=signup&ref=".$_SESSION['id']."\">click here to sign up</a>";
$from = "[email protected]";
$headers = "From: $from";
  mail($email, "Join my referral program", $message, $headers);

 

That's what I have and it just displays the HTML code in the email

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.