2012-03-22 48 views
2

我試圖用一個簡單的PHP電子郵件PHP郵件錯誤 - 無法發送郵件到SMTP服務器。未指定收件人。伊特。準備。在

這是在我的生產服務器的工作。但是這不適用於我的開發服務器。我無法找到什麼服務器配置缺少

我正在錯誤

Unable to send message to SMTP server. No recipients specified. ite. ready. in "filepath" on line 17 

這是什麼ITE

$toemail="[email protected]"; 
$subject="subject line" ; 
    $content="conetent message"; 
$frmemail = "From:[email protected]" ; 
    mail($toemail,$subject,$content,$frmemail) ; 

任何人都可以提出什麼樣的配置或PHP INI設置是缺少

開發我端口訪問。

我這裏

http://www.phpfreaks.com/forums/index.php?topic=134654

http://forums.zend.com/viewtopic.php?t=5151&f=77#p23409

看到完全相同的錯誤,但什麼都可以從不同的域的某些安全設置阻止發送電子郵件?

ZMAil 

SMTP localhost 
smtp_port 25 
sendmail_from no value 
+0

你可能有錯誤頭部,PLZ張貼在什麼'$ frmemail'。 – 2012-03-22 16:16:25

+0

沒有大碼..anyway我更新它 – zod 2012-03-22 16:20:13

+0

你在共享主機?這可能是值得一問的託管服務提供商約 – 2012-03-22 17:32:40

回答

0

更改服務器上的這些設置似乎已經允許成功發送的電子郵件。改變的設置爲:

AUTOADD(*YES) 

ALWRLY(*ALL) 

允許依靠郵件是主要的一個

0

第四個參數 - 附加標頭 - 是可選的。如果未設置,則將使用來自php.ini的sendmail_from選項。 如果你有機會到php.ini文件,嘗試設置選項[email protected]和刪除郵件()函數的第四個參數。

相關問題