diff --git a/ext/standard/mail.c b/ext/standard/mail.c index ea5391920fd..8f0c3faec3e 100644 --- a/ext/standard/mail.c +++ b/ext/standard/mail.c @@ -174,7 +174,11 @@ int php_mail(char *to, char *subject, char *message, char *headers, char *extra_ } fprintf(sendmail, "\n%s\n", message); ret = pclose(sendmail); +#if defined(EX_TEMPFAIL) if ((ret != EX_OK)&&(ret != EX_TEMPFAIL)) { +#else + if (ret != EX_OK) { +#endif return 0; } else { return 1;