누구든지 어떻게 알 수 있습니까 메일 오류 (전자 메일을 보내는 동안 오류가 표시됩니다 메일 서버에 의해 오류가 발생했습니다) PHP에서? emailserver 아래에 의해 발생 된mail()로 인한 오류를 어떻게 잡을 수 있습니까?
오류는 다음과 같습니다 :
if (!mail(...)) {
// Reschedule for later try or panic appropriately!
}
http://php.net/manual/en/function.mail.php
mail()
returnsTRUE
if the mail was successfully accepted for delivery,FALSE
otherwise.It is important to note that just because the mail was accepted for delivery, it does NOT mean the mail will actually reach the intended destination.
당신이 억제해야하는 경우 :
<!--2010-02-24T14:26:43+11:00 NOTICE (5): Unexpected Error: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at "ip " port portip, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() (# 2).
2010-02-24 14:26:43
Username: admin
Error in line 439 of file D:\test.php
Script: /customer.php
[Global Error Handler]
-->
어떻게 메일을 보내나요? SMTP 서버와 직접 이야기하고 있습니까? –