Advertisement
Advertisement

新足迹

 找回密码
 注册
新足迹 门户 IT专业论坛 查看内容

PHP 代码里发email无法收到email, 是服务器的mail server的问题么?

2015-6-13 14:29| 发布者: eguan88 | 查看: 4724| 原文链接

刚弄了一个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设定


Advertisement
Advertisement


Advertisement
Advertisement
返回顶部