jcrawford
public php v1 · immutable $headers = ''; if(preg_match('/<html>/i', $msg)) { $headers .= "MIME-Version: 1.0\r"; $headers .= "Content-type: text/html; charset=iso-8859-1\r"; } $headers .= "From: \"Sew Fast Sew Easy\" <store@sewfastseweasy.com>\r" . "Reply-To: <store@sewfastseweasy.com>\r" . "X-Mailer: PHP/" . phpversion(); return mail( $to, stripslashes($subject), wordwrap(stripslashes($msg),70), $headers . "-f <webmaster@{$_SERVER['SERVER_NAME']}>" );