CVS update: php3/win32

From: Date: Thu, 13 Aug 1998 19:54:12 +0000
Subject: CVS update: php3/win32
Groups: php.dev 
Request: Send a blank email to php-dev+get-156@lists.php.net to get a copy of this message
Date: Thursday August 13, 1998 @ 15:54 Author: shane Update of /repository/php3/win32 In directory asf:/tmp/cvs-serv29817/win32 Modified Files: sendmail.c sendmail.h Log Message: Sendmail fixes. project file updates Index: php3/win32/sendmail.c diff -c php3/win32/sendmail.c:1.20 php3/win32/sendmail.c:1.21 *** php3/win32/sendmail.c:1.20 Mon Jun 29 13:54:31 1998 --- php3/win32/sendmail.c Thu Aug 13 15:54:12 1998 *************** *** 286,292 **** } //send termination dot ! if ((res = Post("\n.\n")) != SUCCESS) return (res); if ((res = Ack()) != SUCCESS) return (res); --- 286,292 ---- } //send termination dot ! if ((res = Post("\r\n.\r\n")) != SUCCESS) return (res); if ((res = Ack()) != SUCCESS) return (res); *************** *** 324,330 **** zoneh /= (60 * 60); zonem = (abs(_timezone) / 60) - (zoneh * 60); ! p += sprintf(p, "Date: %s, %02d %s %04d %02d:%02d:%02d %s%02d%02d\n", days[tm->tm_wday], tm->tm_mday, months[tm->tm_mon], --- 324,330 ---- zoneh /= (60 * 60); zonem = (abs(_timezone) / 60) - (zoneh * 60); ! p += sprintf(p, "Date: %s, %02d %s %04d %02d:%02d:%02d %s%02d%02d\r\n", days[tm->tm_wday], tm->tm_mday, months[tm->tm_mon], *************** *** 337,354 **** zonem); if(xheaders && strnicmp("From:",xheaders,5)){ ! p += sprintf(p, "From: %s\n", RPath); } ! p += sprintf(p, "To: %s\n", mailTo); ! p += sprintf(p, "Subject: %s\n", Subject); if(xheaders){ ! p += sprintf(p, "%s\n", xheaders); } if ((res = Post(GLOBAL(Buffer))) != SUCCESS) return (res); ! if ((res = Post("\n")) != SUCCESS) return (res); return (SUCCESS); --- 337,354 ---- zonem); if(xheaders && strnicmp("From:",xheaders,5)){ ! p += sprintf(p, "From: %s\r\n", RPath); } ! p += sprintf(p, "Subject: %s\r\n", Subject); ! p += sprintf(p, "To: %s\r\n", mailTo); if(xheaders){ ! p += sprintf(p, "%s\r\n", xheaders); } if ((res = Post(GLOBAL(Buffer))) != SUCCESS) return (res); ! if ((res = Post("\r\n")) != SUCCESS) return (res); return (SUCCESS); *************** *** 467,473 **** goto again; // Incomplete data. Line must be terminated by CRLF if (buf[0] > '3') ! return (SNMP_SERVER_ERROR); return (SUCCESS); } --- 467,473 ---- goto again; // Incomplete data. Line must be terminated by CRLF if (buf[0] > '3') ! return (SMTP_SERVER_ERROR); return (SUCCESS); } Index: php3/win32/sendmail.h diff -c php3/win32/sendmail.h:1.5 php3/win32/sendmail.h:1.6 *** php3/win32/sendmail.h:1.5 Fri Jan 30 19:22:41 1998 --- php3/win32/sendmail.h Thu Aug 13 15:54:12 1998 *************** *** 17,23 **** #define FAILED_TO_CONNECT 6 #define FAILED_TO_SEND 7 #define FAILED_TO_RECEIVE 8 ! #define SNMP_SERVER_ERROR 9 #define FAILED_TO_GET_HOSTNAME 10 #define OUT_OF_MEMORY 11 #define UNKNOWN_ERROR 12 --- 17,23 ---- #define FAILED_TO_CONNECT 6 #define FAILED_TO_SEND 7 #define FAILED_TO_RECEIVE 8 ! #define SMTP_SERVER_ERROR 9 #define FAILED_TO_GET_HOSTNAME 10 #define OUT_OF_MEMORY 11 #define UNKNOWN_ERROR 12 -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#156) next »