1
0
mirror of https://github.com/php/php-src.git synced 2026-04-09 09:03:04 +02:00
This commit is contained in:
Sara Golemon
2003-04-01 06:21:54 +00:00
parent b8e3e0bfe3
commit 48c947389e

View File

@@ -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);