kpetsche20 Posted July 30, 2008 Share Posted July 30, 2008 How do you send HTML using mail()? Link to comment https://forums.phpfreaks.com/topic/117384-solved-how-do-you-add-html-to-out-going-mail/ Share on other sites More sharing options...
DarkWater Posted July 30, 2008 Share Posted July 30, 2008 You need to send the proper mail headers. Link to comment https://forums.phpfreaks.com/topic/117384-solved-how-do-you-add-html-to-out-going-mail/#findComment-603785 Share on other sites More sharing options...
PFMaBiSmAd Posted July 30, 2008 Share Posted July 30, 2008 There is an example in the mail() section in the php manual. Link to comment https://forums.phpfreaks.com/topic/117384-solved-how-do-you-add-html-to-out-going-mail/#findComment-603787 Share on other sites More sharing options...
kpetsche20 Posted July 30, 2008 Author Share Posted July 30, 2008 $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 Link to comment https://forums.phpfreaks.com/topic/117384-solved-how-do-you-add-html-to-out-going-mail/#findComment-603788 Share on other sites More sharing options...
DarkWater Posted July 30, 2008 Share Posted July 30, 2008 Read PFMaBiSmAd's post. There are plenty of examples all over the place. Link to comment https://forums.phpfreaks.com/topic/117384-solved-how-do-you-add-html-to-out-going-mail/#findComment-603791 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.