JGuizard
8/12/2015 - 1:13 PM

Send mail with PHP

Send mail with PHP

	$headers = "From: giuseppe.gullo@shapeapp.net\r\n";
	$headers .= "Reply-To: giuseppe.gullo@shapeapp.net\r\n";
	$headers .= "Return-Path: giuseppe.gullo@shapeapp.netr\n";
	//$headers .= "CC: sombodyelse@example.com\r\n";
	//$headers .= "BCC: hidden@example.com\r\n";

	$to="gfgullo@gmail.com";
	$subject="hello";

	if ( mail($to,$subject,$message,$headers) ) {
	   echo "The email has been sent!";
	   } else {
	   echo "The email has failed!";
	   }
?>