mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
UnixWare 7.1 does not have EX_TEMPFAIL or (as far as I can tell)
a concept of a temporary failure response to pclose().
This commit is contained in:
parent
e249545165
commit
6d7ce5ffa0
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue