i have a simple mailing funciotn that works fine, but it send the html code as text.
the email message looks like source code.
$to = "$a_customer[FirstName] $a_customer[LastName] <$a_customer[Email]>";
$headers = "From: $a_user[MyEmail]";
$headers .= "MIME-Version: 1.0rn";
$headers .= "Content-type: text/html; charset=iso-8859-1rn";
$subject = "Statement From $a_user[MyCompany]";
$body = "
<html>
<head></head>
<body>
<a href='http://someurl/index.php?ID=$ID&uid=$a_user[user_id]&key="
.GET_KEY( $ID + 2 )
."'>click here to view</a>
</body>
</html>";
if( !mail($to, $subject, $body, $headers )) TRACE_ERROR("error - could not send email");
how do i send email that does not just send the src code as a text message??