0
我試圖發送一個批量電子郵件..所有BCC的..我嘗試了一切,我可以找到谷歌..沒有什麼似乎工作......我也檢查了我的php.ini文件以及根據我在谷歌找到設置...郵件服務器連接失敗
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25
我在冠軍得到的錯誤,我的PHP文件的一部分是低於...任何幫助將不勝感激..
$to = "";
$header = "From:[email protected]\r\n";
//Compiling BCC list
for($i=0; $i<$count; $i++)
{
if($i == 0)
$header .= $emailContacts[$i];
else
$header .= ",".$emailContacts[$i];
}
if(mail($to, $subject, $message, $header))
echo "MAIL pass";
else
echo "MAIL fail";
錯誤:
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port"
在哪個平臺上,你的工作的工作? Windows,Mac,Linux? 32或64位? – nebulousGirl
你正在運行SMTP服務器嗎? – F0G
即時通訊運行在Windows 32位..即時通訊不太確定如何運行一個SMTP服務器... – user1703514