Bir posta hatasını (e-posta gönderilirken hata ve e-posta gönderilirken hata neden olur) php'de nasıl yakalandığını bilen var mı? Emailserver aşağı neden olduPosta() nedeniyle oluşan bir hatayı nasıl yakalarım?
Hata aşağıdaki gibidir:
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.
sen bastırmak için gerekirse:
<!--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]
-->
Postaları nasıl gönderirsiniz? SMTP sunucusuyla doğrudan konuşuyor musunuz? –