[請益] 使用mail() php.ini 的設定問題

看板PHP作者 (Hao)時間17年前 (2008/11/05 18:45), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/2 (看更多)
[mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = me@example.com 以上為php.ini的設定 測試程式碼為 <?php $to = iconv("UTF-8", "Big5", "superhao26@gmail.com"); $subject = iconv("UTF-8", "Big5", "測試信"); $message = iconv("UTF-8", "Big5", "這是一封測試信\n\n若您收到此封信,表示測試成功。"); mail($to, $subject, $message); ?> 錯誤訊息為 Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for superhao26@gmail.com in D:\AppServ\www\mail_01.php on line 12 設定那邊要怎麼改才會對呢? 感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.71.22.5

11/07 19:30, , 1F
你沒有架SMTP功能的Mail Server~
11/07 19:30, 1F
文章代碼(AID): #194NbXgP (PHP)
文章代碼(AID): #194NbXgP (PHP)