Page 1 of 1

html in mail function

Posted: Fri Apr 09, 2004 4:49 pm
by John Cartwright
How would I format HTML into this...

Code: Select all

<?php
	  mail ($to, $subject, "
	   
	  Thank you for your purchase.
	  
	  Your Information:\n
	  
	  First Name:    ".$_SESSION['firstname']."\n
	  Last Name:     ".$_SESSION['lastname']."\n
	  License:       ".$_SESSION['timelicense']."\n
	  Hosting:       ".$_SESSION['hosting']."\n
	  Optionals:     ".$_SESSION['optional']."\n
	  IP:            $REMOTE_ADDR\n
	  
	  Total:         $ ".$_SESSION['total']." (USD)\n\n
	  
	  <a href="https://www.paypal.com/cgi-bin/webscr/$paypal">Click here to purchase.</a>\n\n
	  
	  From: ".$_SESSION['email']."\n");
?>
For example, simple things like line breaks...
If I put <br> it actually outputs the text <br>...and links <a href ....
I tried escaping the ?> tags but It wouldn't make a difference.

Posted: Fri Apr 09, 2004 5:07 pm
by patrikG
Have a look at:

viewtopic.php?t=19078

and then click on the first link in my signature ;)

Posted: Fri Apr 09, 2004 5:42 pm
by John Cartwright
ty i used one of the tutorials ty.