$headers = '';
if(preg_match('//i', $msg))
{
$headers .= "MIME-Version: 1.0\r";
$headers .= "Content-type: text/html; charset=iso-8859-1\r";
}
$headers .= "From: \"Sew Fast Sew Easy\" \r" .
"Reply-To: \r" .
"X-Mailer: PHP/" . phpversion();
return mail(
$to,
stripslashes($subject),
wordwrap(stripslashes($msg),70),
$headers . "-f "
);