php無法用mail寄信 - Linux

By Vanessa
at 2011-01-24T14:38
at 2011-01-24T14:38
Table of Contents
目前這個問題困擾很久阿...找不到解決辦法
請各位大大幫忙找看看問題所在
系統是FEDORA 12
php.ini內的設定
SMTP = localhost
smtp_port = 25
sendmail_from = root@localhost
sendmail_path = /usr/sbin/sendmail -t -i
使用的是sendmail用yum裝的
我自己在LINUX下打指令mail -s 'TTTTTTTest' [email protected] < .bashrc
可以在自己的信箱內收到信件,收到的寄件者是root <[email protected]>
↑外部信箱
但是php的mail()卻無法使用
<?php
$to = "[email protected]";
$title = "測試"
$msg = "TTTTTTTTTTTTT測試"
mail($to, $title, $msg)
echo("Finish");
?>
麻煩大大幫看看,有需要其他資訊會再補上
(maillog內都沒有即時更新...)
--
◢ ≡ ◣ ╭──────────╮
⊙-⊙◥ │幹你媽的死大雄 │
▃ ≡皿 ≡ ╯再跟拎北哭夭試試看 │
╭┴╮ ◥ ︶ ◤ ╰──────────╯
│瓦│ ◣▇▇▇◣
│斯│ ▽
--
請各位大大幫忙找看看問題所在
系統是FEDORA 12
php.ini內的設定
SMTP = localhost
smtp_port = 25
sendmail_from = root@localhost
sendmail_path = /usr/sbin/sendmail -t -i
使用的是sendmail用yum裝的
我自己在LINUX下打指令mail -s 'TTTTTTTest' [email protected] < .bashrc
可以在自己的信箱內收到信件,收到的寄件者是root <[email protected]>
↑外部信箱
但是php的mail()卻無法使用
<?php
$to = "[email protected]";
$title = "測試"
$msg = "TTTTTTTTTTTTT測試"
mail($to, $title, $msg)
echo("Finish");
?>
麻煩大大幫看看,有需要其他資訊會再補上
(maillog內都沒有即時更新...)
--
◢ ≡ ◣ ╭──────────╮
⊙-⊙◥ │幹你媽的死大雄 │
▃ ≡皿 ≡ ╯再跟拎北哭夭試試看 │
╭┴╮ ◥ ︶ ◤ ╰──────────╯
│瓦│ ◣▇▇▇◣
│斯│ ▽
--
Tags:
Linux
All Comments

By Cara
at 2011-01-26T03:01
at 2011-01-26T03:01

By Noah
at 2011-01-29T05:30
at 2011-01-29T05:30

By Sierra Rose
at 2011-01-30T09:00
at 2011-01-30T09:00

By Elma
at 2011-01-31T22:51
at 2011-01-31T22:51

By Tom
at 2011-02-04T19:23
at 2011-02-04T19:23
Related Posts
合併頻寬

By Rae
at 2011-01-24T02:27
at 2011-01-24T02:27
gnome 3

By Selena
at 2011-01-22T22:27
at 2011-01-22T22:27
無法USB開機

By Skylar Davis
at 2011-01-22T14:43
at 2011-01-22T14:43
遠端刪除cookie

By Emily
at 2011-01-22T00:48
at 2011-01-22T00:48
ptt送我不認識的字元給我

By Zanna
at 2011-01-21T20:19
at 2011-01-21T20:19