Re: [請益] 關於php mail()函數的問題

看板PHP作者 (小惡魔)時間16年前 (2009/11/01 21:51), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串2/2 (看更多)
※ 引述《keven228 (猴子光)》之銘言: : 想請問各位大大一個問題 : 就是我目前是自學php : 用工具書的懶人包~但是mail設定的部份好像有問題 : 請問我要如何設定sender的部份 : Ps:因為是自學的關係+上並非本科系 所以麻煩各位大大盡量講詳細點~謝謝 <?php $to = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> 先看看:http://php.net/manual/en/function.mail.php 裡面的例子 還有你的問題也在酷學園發表過: http://phorum.study-area.org/index.php/topic,58714.0.html -- PHP MVC CodeIgniter 繁體中文手冊: http://tinyurl.com/mduyv8 PHP MVC CodeIgniter 繁體中文討論區:http://tinyurl.com/yayzoz8 PHP MVC CodeIgniter 中文官方網站: http://tinyurl.com/yatds8n Appleboy Blog 電腦技術: http://blog.Wu-Boy.com -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.123.107.202

11/01 22:00, , 1F
他是不是要問php.ini的設定 或是需要認證的SMTP server呢?
11/01 22:00, 1F

11/01 23:53, , 2F
是的我有問過但是我在PHP網頁找不到 所以才在這邊再詢問
11/01 23:53, 2F
文章代碼(AID): #1AxP953v (PHP)
討論串 (同標題文章)
文章代碼(AID): #1AxP953v (PHP)