legohead6 Posted September 15, 2006 Share Posted September 15, 2006 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 Quote Link to comment Share on other sites More sharing options...
steelmanronald06 Posted September 15, 2006 Share Posted September 15, 2006 http://lampgeekz.netgeekz.net/forum/index.php/topic,38.0.html Quote Link to comment Share on other sites More sharing options...
joshi_v Posted September 15, 2006 Share Posted September 15, 2006 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 :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.