PHP mail()从不工作[关闭]

I am using mail() on my site, and the function is working, but the from address is not showing my email address, it is showing name@mailchannels.net

$ito_email = "$inameuser";
$ifrom_email = "info@mywebsite.co.za";
$isubject = "My subject";
$icomment =  "Hello $inameuser,

"
. " 
"
. "Subject: $isubjectnote"
. " 
"
. "Notice: $inote"
. " 
"
. "
"
. "Many thanks";

//send email
mail($ito_email, "$isubject", $icomment, "From: Support " . $ifrom_email);

Changing

mail($ito_email, "$isubject", $icomment, "From: Support " . $ifrom_email);

to

mail($ito_email, "$isubject", $icomment, "From: Support <" . $ifrom_email . ">");

Should allow you to include a readable name as well as the FROM e-mail address.

EXAMPLE:

$email = "emailfrom@anything.com";
  $headers = 'From: ' . $email . '' . "
" . "Content-type: text/html;charset = windows-1250";
            $subject = $email . ' - New message';
            mail("your email", $subject, "email message", $headers);
$to      = 'abc@xyz.com'; $subject = 'the subject';
$message = 'Message';
$headers = 'From: xyz@xyz.com' . "
" .'Reply-To: xyz1@xyz.com' . "
";
mail($to, $subject, $message, $headers);
OR
$headers .= $headers; Concat