diff options
author | Frank M. Kromann <fmk@php.net> | 2001-12-04 23:33:52 +0000 |
---|---|---|
committer | Frank M. Kromann <fmk@php.net> | 2001-12-04 23:33:52 +0000 |
commit | 66d7578c361a0150e1b48da8343a15ddebf99b0b (patch) | |
tree | f2109fc2c45e546c1fb2aae3ae8812450f4afa6f | |
parent | 648648ff1b7d84e2426e5e49d4b00b4a1e8696cc (diff) | |
download | php-git-66d7578c361a0150e1b48da8343a15ddebf99b0b.tar.gz |
Remove check for "To:" in headers. If "Reply-To:" exists the the To: entry was not created.
This is WIn32 only.
-rw-r--r-- | win32/sendmail.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/win32/sendmail.c b/win32/sendmail.c index 903447f028..23c619c281 100644 --- a/win32/sendmail.c +++ b/win32/sendmail.c @@ -323,9 +323,10 @@ int SendText(char *RPath, char *Subject, char *mailTo, char *data, char *headers /********************************************************************* // 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 @@ int PostHeader(char *RPath, char *Subject, char *mailTo, char *xheaders, char *m 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); } |