diff options
-rw-r--r-- | ext/standard/mail.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/mail.c b/ext/standard/mail.c index ea5391920f..8f0c3faec3 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; |