You must to add a needle headers:
Sample code :
$headers = "From: [email protected] "; $headers .= "Reply-To: [email protected] "; $headers .= "Return-Path: [email protected] "; $headers .= "CC: [email protected] "; $headers .= "BCC: [email protected] "; if ( mail($to,$subject,$message,$headers) ) { echo "The email has been sent!"; } else { echo "The email has failed!"; } ?>
2.1m questions
2.1m answers
60 comments
57.0k users