All pastes #592893 Raw Edit

jcrawford

public php v1 · immutable
#592893 ·published 2007-06-28 00:01 UTC
rendered paste body
	$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']}>"	);