]> granicus.if.org Git - php/commitdiff
- Convert unix to dos line endings.
authorMarkus Fischer <mfischer@php.net>
Tue, 14 May 2002 15:32:15 +0000 (15:32 +0000)
committerMarkus Fischer <mfischer@php.net>
Tue, 14 May 2002 15:32:15 +0000 (15:32 +0000)
# This is *really* annoying ... can only be an advantage for windows users imho.

win32/sendmail.c

index 481b603012e3401b0bf9fa3f9e85213198e96d48..f6bcb715a4df114f699211b220f76b7402230fff 100644 (file)
@@ -89,6 +89,7 @@ static char *ErrorMessages[] =
        {"Bad Mail Host"},
        {"Bad Message File"},
        {"\"sendmail_from\" not set in php.ini"},
+
        {"Mailserver rejected our \"sendmail_from\" setting"} /* 20 */
 };
 
@@ -207,10 +208,13 @@ void TSMClose()
 char *GetSMErrorText(int index)
 {
 
+
        if (MIN_ERROR_INDEX <= index && index < MAX_ERROR_INDEX) {
                return (ErrorMessages[index]);
+
        } else {
                return (ErrorMessages[UNKNOWN_ERROR]);
+
        }
 }
 
@@ -285,9 +289,12 @@ int SendText(char *RPath, char *Subject, char *mailTo, char *data, char *headers
        efree(tempMailTo);
        if (headers && (pos1 = strstr(headers, "Cc:"))) {
                if (NULL == (pos2 = strstr(pos1, "\r\n"))) {
+
                        tempMailTo = estrndup(pos1, strlen(pos1));
+
                } else {
                        tempMailTo = estrndup(pos1, pos2-pos1);
+
                }
 
                token = strtok(tempMailTo, ",");