cvs: php4 /win32 sendmail.c
| From: | Frank M. Kromann | Date: | Tue, 04 Dec 2001 23:33:52 +0000 |
| Subject: | cvs: php4 /win32 sendmail.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-8431@lists.php.net to get a copy of this message | ||
fmk Tue Dec 4 18:33:52 2001 EDT
Modified files:
/php4/win32 sendmail.c
Log:
Remove check for "To:" in headers. If "Reply-To:" exists the the To: entry was
not created.
This is WIn32 only.
Index: php4/win32/sendmail.c
diff -u php4/win32/sendmail.c:1.22 php4/win32/sendmail.c:1.23
--- php4/win32/sendmail.c:1.22 Tue Dec 4 13:47:07 2001
+++ php4/win32/sendmail.c Tue Dec 4 18:33:52 2001
@@ -323,9 +323,10 @@
/*********************************************************************
// Name: PostHeader
// Input: 1) return path
-// 2) Subject
-// 3) destination address
-// 4) DoMime flag
+// 2) Subject
+// 3) destination address
+// 4) headers
+// 5) cc destination address
// Output: Error code or Success
// Description:
// Author/Date: jcar 20/9/96
@@ -365,11 +366,10 @@
p += sprintf(p, "From: %s\r\n", RPath);
}
p += sprintf(p, "Subject: %s\r\n", Subject);
- if(!xheaders || !strstr(xheaders, "To:")){
- p += sprintf(p, "To: %s\r\n", mailTo);
- }
- if (mailCc && *mailCc)
+ 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);
}