Hi, thanks for looking.
The problem is that I can't get a custom header in my emails no matter what i do. The code i have is shown below. From everything I have read it seems like it should work.
I have also had a chat with my host (Hostmonster.com) and the little form that the guy made to test it works, so it is definately possible. THey aren't blocking etc.
Any help at all is appreciated.
$to = 'rickya100@gmail.com';
// subject
$subject = 'It\'s your turn to debate!';
// message
$message = '
<html>
<head>
<title>Add to the debate</title>
</head>
<body>
<table>
<tr bgcolor="#193441"><td><img alt=\'thinksane.net\' src=\'http://www.thinksane.net/images/logo.png\' /></td></tr>
</table>
<h3>It\'s your turn to add to the debate!</h3>
<h4>Hello name,</h4>
<p>This is an email to let you know that it is now your turn to post a comment in the ever continuing debate at ThinkSane.net.</p>
<h4>Your activation code is: 00000</h4>
<h4>Here\'s some tips on what to write & how to structure it in case you\'re not sure...</h4>
<ol>
<li>READ the last few comments before starting to write your own.</li>
<li>Try and respond to any points of contention that the previous commenter raised and then put forth any arguments that you wish to raise.</li>
<li>Spell check your finished comment. Use your favourite service or try <a href="http://www.spelljax.com/" title="Spell Check">this one</a></li>
<li>Make sure your comment adheres to the rules. NO excessive cursing, NO purely offensive comments and NO purely site promotion comments.</li>
</ol>
<h4>We look forward to seeing what you have to say!</h4>
</body>
</html>
';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'To: Ricahrd <rickya100@gmail.com>' . "\r\n";
$headers .= 'From: admin@thinksane.net' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);