邮件从sendmail失败 – CentOS 7
我简单的PHP脚本发送邮件是 <?php ini_set( 'display_errors', 1 ); error_reporting( E_ALL ); $from = "[email protected]"; $to = "[email protected]"; $subject = "PHP Mail Test script"; $message = "This is a test to check the PHP Mail functionality"; $headers = "From:" . $from; mail($to,$subject,$message, $headers); echo "Test email sent"; ?> 当我在任何其他服务器上运行这个脚本时,它工作正常,但是当我在新的CentOS 7机器上执行时,我总是在/ var / log / maillog中出错 Mar 15 19:08:38 […]