2012-09-17 47 views
2

接收失敗我想在我的Windows服務器上使用php郵件功能通過ii7和我有這種變暖,這不允許我發送郵件。警告:郵件():無法在

Warning: mail(): Failed to Receive in xxx 

該行包含此:

mail("[email protected]", "subject", 'body',"From: [email protected]") 

在php.ini中我已經配置SMTP服務器,端口和sendmail_from這樣的:

; http://php.net/smtp 
SMTP = 128.x.x.xxx 
; http://php.net/smtp-port 
smtp_port = 110 

; For Win32 only. 
; http://php.net/sendmail-from 
sendmail_from = [email protected] 

的phpinfo()safe_mode設置爲關閉

可能是什麼問題? 謝謝。

+1

你的身體內容有多大?也許試試這個:http://stackoverflow.com/questions/4084932/i-get-error-failed-to-receive-when-i-use-mail-in-php –

+0

就像我在這個問題上的一樣。我只是測試它,所以它不是一個字符數量的問題。 – Alvaro

+0

http://stackoverflow.com/questions/4084932/i-get-error-failed-to-receive-when-i-use-mail-in-php,https://bugs.php.net/bug.php ?id = 13634 –

回答

1

110是一個POP3端口,不是SMTP。改爲嘗試smtp_port = 25

相關問題