cvs: /php3/win32 sendmail.c
| From: | Frank M . Kromann | Date: | Wed, 01 Sep 1999 10:23:39 +0000 |
| Subject: | cvs: /php3/win32 sendmail.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10407@lists.php.net to get a copy of this message | ||
fmk Wed Sep 1 06:23:39 1999 EDT
Modified files:
/php3/win32 sendmail.c
Log:
Check server status after each rcpt send
Index: php3/win32/sendmail.c
diff -u php3/win32/sendmail.c:1.26 php3/win32/sendmail.c:1.27
--- php3/win32/sendmail.c:1.26 Wed Sep 1 06:14:02 1999
+++ php3/win32/sendmail.c Wed Sep 1 06:23:38 1999
@@ -1,4 +1,4 @@
-/* $Id: sendmail.c,v 1.26 1999/09/01 10:14:02 fmk Exp $ */
+/* $Id: sendmail.c,v 1.27 1999/09/01 10:23:38 fmk Exp $ */
/*
* PHP Sendmail for Windows.
@@ -247,6 +247,10 @@
while(token != NULL)
{
sprintf(GLOBAL(Buffer), "RCPT TO:<%s>\r\n", token);
+ if ((res = Post(GLOBAL(Buffer))) != SUCCESS)
+ return (res);
+ if ((res = Ack()) != SUCCESS)
+ return (res);
token = strtok(NULL, ",");
}
@@ -260,15 +264,14 @@
while(token != NULL)
{
sprintf(GLOBAL(Buffer), "RCPT TO:<%s>\r\n", token);
+ if ((res = Post(GLOBAL(Buffer))) != SUCCESS)
+ return (res);
+ if ((res = Ack()) != SUCCESS)
+ return (res);
token = strtok(NULL, ",");
}
efree(tempMailTo);
}
-
- if ((res = Post(GLOBAL(Buffer))) != SUCCESS)
- return (res);
- if ((res = Ack()) != SUCCESS)
- return (res);
if ((res = Post("DATA\r\n")) != SUCCESS)
return (res);