added From: header to the mail notification

git-svn-id: http://svn.automattic.com/wordpress/trunk@1707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
michelvaldrighi 2004-09-23 11:42:40 +00:00
parent 75caf09741
commit 25a0cec898
1 changed files with 5 additions and 2 deletions

View File

@ -149,7 +149,10 @@ $wpdb->query("INSERT INTO $wpdb->comments (comment_post_ID, comment_author, comm
$random_password = substr(md5(uniqid(microtime())), 0, 6);
$wpdb->query("INSERT INTO $wpdb->users (ID, user_login, user_pass, user_nickname, user_email, user_level, user_idmode) VALUES ( '1', 'admin', MD5('$random_password'), 'Administrator', '$admin_email', '10', 'nickname')");
mail($admin_email, 'New WordPress Blog', "Your new WordPress blog has been sucessfully set up at:
$from = 'From: '.$_POST['weblog_title'].' <wordpress@'.$_SERVER['SERVER_NAME'].'>';
$message_headers = "$from";
mail($admin_email, 'New WordPress Blog', "Your new WordPress blog has been successfully set up at:
$guessurl
@ -162,7 +165,7 @@ We hope you enjoy your new weblog. Thanks!
--The WordPress Team
http://wordpress.org/
");
", $message_headers);
upgrade_all();
?>