您必须添加针头:
样例代码:
$headers = "From: myplace@example.comrn";$headers .= "Reply-To: myplace2@example.comrn";$headers .= "Return-Path: myplace@example.comrn";$headers .= "CC: sombodyelse@example.comrn";$headers .= "BCC: hidden@example.comrn";if ( mail($to,$subject,$message,$headers) ) { echo "The email has been sent!"; } else { echo "The email has failed!"; }?>


