git-svn-id: https://develop.svn.wordpress.org/trunk@2477 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-03-25 21:41:45 +00:00
parent 3a0af0fb6a
commit 8480784cda
5 changed files with 62 additions and 64 deletions

View File

@@ -1653,9 +1653,9 @@ function htmlentities2($myHTML) {
function wp_mail($to, $subject, $message, $headers = '') {
if( $headers == '' ) {
$headers = "MIME-Version: 1.0\n" .
"From: " . get_settings('admin_email') . "\n" .
"Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\n";
$headers = "MIME-Version: 1.0\r\n" .
"From: " . get_settings('admin_email') . "\r\n" .
"Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\r\n";
}
return @mail($to, $subject, $message, $headers);