Jump to content

PHP HTML Mail


Daleeburg

Recommended Posts

So i am trying to use Php to send out an HTML formated message, but it sends it out and i can still see all the tags, help please

 

					$headers = 'From: [email protected]' . "\r\n" .
					'Reply-To:  [email protected]' . "\r\n" .
					'X-Mailer: PHP/' . phpversion().
					'Content-type: text/html; charset=iso-8859-1' . "\r\n";
  						
					mail($_POST['2email'], 'Welcome To CaffeineReviews.com', '<html><body>Thank you for registering at CaffeineReviews.com. Your Account Information is as follows:<br> USERNAME: '.$_POST['user'].'<br> E-MAIL ADDRESS: '.$pemail1.'@'.$pemail2.'<br><br> You must visit this link before you can post any reviews or any thing in the forums.<br><a href="http://www.CaffeineReviews.com/index.php?mode=validate&u='.$_POST['user'].'&r='.$rand.'">http://www.CaffeineReviews.com/index.php?mode=validate&u='.$_POST['user'].'&r='.$rand.'</a><br><br>Thank you,<br>   CaffeineReviews.com</body></html>', $headers);

Link to comment
https://forums.phpfreaks.com/topic/48993-php-html-mail/
Share on other sites

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.