cvs: php4 /win32 sendmail.c sendmail.h

From: Date: Tue, 04 Dec 2001 18:47:08 +0000
Subject: cvs: php4 /win32 sendmail.c sendmail.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-8420@lists.php.net to get a copy of this message
fmk Tue Dec 4 13:47:08 2001 EDT Modified files: /php4/win32 sendmail.c sendmail.h Log: modified to enable imap_mail() on win32 Index: php4/win32/sendmail.c diff -u php4/win32/sendmail.c:1.21 php4/win32/sendmail.c:1.22 --- php4/win32/sendmail.c:1.21 Fri Nov 30 04:29:15 2001 +++ php4/win32/sendmail.c Tue Dec 4 13:47:07 2001 @@ -277,9 +277,9 @@ /* send message header */ if (Subject == NULL) - res = PostHeader(RPath, "No Subject", mailTo, headers); + res = PostHeader(RPath, "No Subject", mailTo, headers, NULL); else - res = PostHeader(RPath, Subject, mailTo, headers); + res = PostHeader(RPath, Subject, mailTo, headers, NULL); if (res != SUCCESS) return (res); @@ -331,7 +331,7 @@ // Author/Date: jcar 20/9/96 // History: //********************************************************************/ -int PostHeader(char *RPath, char *Subject, char *mailTo, char *xheaders) +int PostHeader(char *RPath, char *Subject, char *mailTo, char *xheaders, char *mailCc) { /* Print message header according to RFC 822 */ @@ -368,6 +368,8 @@ if(!xheaders || !strstr(xheaders, "To:")){ p += sprintf(p, "To: %s\r\n", mailTo); } + if (mailCc && *mailCc) + p += sprintf(p, "Cc: %s\r\n", mailCc); if(xheaders){ p += sprintf(p, "%s\r\n", xheaders); } Index: php4/win32/sendmail.h diff -u php4/win32/sendmail.h:1.2 php4/win32/sendmail.h:1.3 --- php4/win32/sendmail.h:1.2 Fri Jun 16 14:23:57 2000 +++ php4/win32/sendmail.h Tue Dec 4 13:47:07 2001 @@ -36,7 +36,7 @@ char *GetSMErrorText(int index); int MailConnect(); -int PostHeader(char *, char *, char *, char *); +int PostHeader(char *, char *, char *, char *, char *); int Post(LPCSTR); int Ack(); unsigned long GetAddr(LPSTR szHost);

« previous php.cvs (#8420) next »