刚弄了一个VPS, 里面安装了 Centos 6, CWP Panel. PHP 代码里发email无法收到email, 是服务器的mail server的问题么? 比如以下这段代码测试email功能, 发去我的email eguan88@hotmail.com . ?php // the message $msg = "First line of text\nSecond line of text"; // use wordwrap() if lines are longer than 70 characters $msg = wordwrap($msg,70); // send email mail("eguan88@hotmail.com","My subject",$msg); echo 'email sent'; ?> 运行一下什么都没收到。 这是php设定 |