[問題] php無法用mail寄信
目前這個問題困擾很久阿...找不到解決辦法
請各位大大幫忙找看看問題所在
系統是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@xxx.xxx < .bashrc
可以在自己的信箱內收到信件,收到的寄件者是root <root@localhost.localdomain>
↑外部信箱
但是php的mail()卻無法使用
<?php
$to = "Email@xxx.xxx";
$title = "測試"
$msg = "TTTTTTTTTTTTT測試"
mail($to, $title, $msg)
echo("Finish");
?>
麻煩大大幫看看,有需要其他資訊會再補上
(maillog內都沒有即時更新...)
--
◢ ≡ ◣ ╭──────────╮
⊙-⊙◥ │幹你媽的死大雄 │
▃ ≡皿 ≡ ╯再跟拎北哭夭試試看 │
╭┴╮ ◥ ︶ ◤ ╰──────────╯
│瓦│ ◣▇▇▇◣
│斯│ ▽
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.250.68.64
→
01/24 16:24, , 1F
01/24 16:24, 1F
→
01/24 18:18, , 2F
01/24 18:18, 2F
推
01/25 10:55, , 3F
01/25 10:55, 3F
推
01/26 16:06, , 4F
01/26 16:06, 4F
推
01/26 22:38, , 5F
01/26 22:38, 5F