看板 PHP 關於我們 聯絡資訊
[mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = [email protected] 以上為php.ini的設定 測試程式碼為 <?php $to = iconv("UTF-8", "Big5", "[email protected]"); $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 [email protected] in D:\AppServ\www\mail_01.php on line 12 設定那邊要怎麼改才會對呢? 感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.71.22.5
crazybad :你沒有架SMTP功能的Mail Server~ 11/07 19:30