From: Sara Golemon Date: Tue, 1 Apr 2003 06:21:54 +0000 (+0000) Subject: Bug #22962 X-Git-Tag: RELEASE_0_5~241 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48c947389e851738cbfeff2da24c457cb77413f2;p=php Bug #22962 --- diff --git a/ext/standard/mail.c b/ext/standard/mail.c index 6b4f701734..6463aedf39 100644 --- a/ext/standard/mail.c +++ b/ext/standard/mail.c @@ -215,10 +215,10 @@ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char return 0; } #endif - fprintf(sendmail, "To: %s\n", to); - fprintf(sendmail, "Subject: %s\n", subject); + fprintf(sendmail, "To: %s\r\n", to); + fprintf(sendmail, "Subject: %s\r\n", subject); if (headers != NULL) { - fprintf(sendmail, "%s\n", headers); + fprintf(sendmail, "%s\r\n", headers); } fprintf(sendmail, "\n%s\n", message); ret = pclose(sendmail);