PHP 用mail()发邮件始终不成功。
<?php<br /><br />$to = "[email protected]";<br />$subject = "Test mail";<br />$message = "Hello! This is a simple email message.";<br />$from = "[email protected]";<br />$headers = "From: $from";<br />$send=mail($to,$subject,$message,$headers);<br />if($send)<br />echo "Mail Sent";<br />else <br />echo "Sorry,mail sent failed!"<br /><br />?>