Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in D:\AppServ\www\php\demo0507.php on line 12
這樣的錯誤字樣
小弟的win xp C:\WINDOWS\PHP.ini
[mail function]
; For Win32 only.
SMTP = msa.hinet.net
smtp_port = 25
; For Win32 only.
sendmail_from = 本人email
修改完php.ini 後 apache 有 start
以下是練習mail()的範例
<?php
$content="親愛的會員:\\n當你收到認證信,請確認以下帳號是你在這所申請帳號。
\\n網站會員帳號:test\\n如果確認無誤請用滑鼠點選專用網址http://xxx.xxx.xxx.xxx.xxx";
mail("mail","註冊信","$content");
?>
感謝賜教
