Return to Snippet

Revision: 18695
at October 6, 2009 10:41 by adamcoulombe


Initial Code
function send_email($from,$to,$subject,$message){
	$header="From: <".$from.">
";
	$header.= 'MIME-Version: 1.0' . "
";
	$header.= 'Content-type: text/html; charset=iso-8859-1' . "
";	
	$send_mail=mail($to,$subject,$message,$header);
	if(!$send_mail){ echo "ERROR"; }
}

Initial URL


Initial Description
nothing special :)

Initial Title
Sending a Simple email using PHP

Initial Tags
email, php, mail

Initial Language
PHP