From标题似乎格式不正确。尝试以下方法:
$headers = 'MIME-Version: 1.0' . "rn"; $headers .= 'From: Your name <info@address.com>' . "rn";$headers .= 'Content-type: text/html; charset=iso-8859-1' . "rn";mail($to, $subject, $body, $headers);

From标题似乎格式不正确。尝试以下方法:
$headers = 'MIME-Version: 1.0' . "rn"; $headers .= 'From: Your name <info@address.com>' . "rn";$headers .= 'Content-type: text/html; charset=iso-8859-1' . "rn";mail($to, $subject, $body, $headers);