Jump to content


Photo

mail with html


  • Please log in to reply
2 replies to this topic

#1 legohead6

legohead6
  • Members
  • PipPipPip
  • Advanced Member
  • 434 posts

Posted 15 September 2006 - 01:06 AM

Hi, i took quiet a long break from php and know i am getting back but i have forgoten a thing or too..

what do you put for headers in the mail() function to make html work in the email?

Thanks,
Matt
"Syntax error" .. WHERE THE **** IS IT?!

#2 steelmanronald06

steelmanronald06
  • Staff Alumni
  • Advanced Member
  • 2,004 posts
  • LocationOk

Posted 15 September 2006 - 01:09 AM

http://lampgeekz.net...topic,38.0.html

#3 joshi_v

joshi_v
  • Members
  • PipPipPip
  • Advanced Member
  • 168 posts

Posted 15 September 2006 - 08:34 AM

Check this


<?php
$to      = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
    'Reply-To: webmaster@example.com' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>


Cheers :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users