mirror of
https://github.com/php/php-src.git
synced 2026-04-09 09:03:04 +02:00
Bug #22962
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user