-1
Guy我從早上開始嘗試。一個多月以來,我的PHP Pear郵件工作正常,但突然停止了,我不理解這個問題。可能是什麼?無法連接到郵件服務器PHP PEAR
$mail=$mail_object->send($recipients, $headers, $mailmsg);
if (PEAR::isError($mail)) {
echo("<p>" . $mail->getMessage() . "</p>");
}
else
{
echo("<p>Message successfully sent!</p>");
}
這是發出這個錯誤。
Failed to connect to mail.escener.com:25 [SMTP: Failed to connect socket: An attempt was made to access a socket in a way forbidden by its access permissions. (code: -1, response:)]
上述代碼上面的代碼是絕對正確的,所以我沒有發佈完整的代碼。請建議。
這是bcoz你沒有訪問權限檢查用戶名和密碼 –
他們是200%正確的 – Ankur