ubuntu php mail,无法使用sendmail和postfix在Ubuntu桌面版上运行php mail()

我正在运行Ubuntu 9.10 LAMP并试图用

PHP进行简单的电子邮件测试,但我没有收到任何电子邮件.

mail("myemail@gmail.com","eric-linux test","test") or die("can't send mail");

运行该脚本时,我没有从PHP中获得任何错误.

在我的PHP.ini文件中是:

sendmail_path = /usr/lib/sendmail -t -i

$sudo ps aux | grep sendmail

eric 2486 0.0 0.4 8368 2344 pts/0 T 14:52 0:00 sendmail -s “Hello world” myemail@gmail.com

eric 8747 0.0 0.3 5692 1616 pts/2 T 16:18 0:00 sendmail

eric 8749 0.0 0.3 5692 1636 pts/2 T 16:18 0:00 sendmail start

eric 9190 0.0 0.3 5692 1636 pts/2 T 19:12 0:00 sendmail start

eric 9192 0.0 0.3 5692 1616 pts/2 T 19:12 0:00 sendmail

eric 9425 0.0 0.3 5692 1620 pts/1 T 19:37 0:00 sendmail

eric 9427 0.0 0.3 6584 1636 pts/1 T 19:37 0:00 sendmail restart

eric 9429 0.0 0.3 5692 1636 pts/1 T 19:38 0:00 /usr/lib/sendmail restart

eric 9432 0.0 0.1 3040 804 pts/1 R+ 19:38 0:00 grep --color=auto sendmail

当我运行$sendmail启动它只是挂在那里什么都不做.

我也安装了postfix以查看它是否会有所帮助,但事实并非如此.

我试图看到端口25:

eric@eric-linux:~$telnet localhost 25

Trying ::1...

Trying 127.0.0.1...

Connected to localhost.

Escape character is '^]'.

220 eric-linux ESMTP Postfix (Ubuntu)

谢谢

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值