JoeAtRevolutionUnltd
Programmer
Here is the code I am using. The email is being sent but the html isn't rendering when it is recieved.
Code:
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: SummitChem Contact Form <>';
$subject = 'Someone has filled out the contact form on '.SITE_BASE_URL.'/contact-us';
$body = '
Hello,
<ul>
<li>'.$clean['name'].'</li>
<li>'.$clean['title'].'</li>
<li>'.$clean['email'].'</li>
<li>'.$clean['address'].'</li>
<li>'.$clean['city'].'</li>
<li>'.$clean['state'].'</li>
<li>'.$clean['zip'].'</li>
<li>'.$clean['comments'].'</li>
<li>'.date('F j, Y').'</li>
<li>'.$clean['interest'].'</li>
<li>'.$clean['company'].'</li>
<li>'.$clean['phone'].'</li>
<li>'.$clean['fax'].'</li>
<li>'.$clean['country'].'</li>
</ul>';
mail(ADMIN_EMAIL,$subject,$body,$headers);