From 24deadc9307ea6f5266cd8a5902072a57d8546cb Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Thu, 23 Sep 2004 11:42:40 +0000 Subject: [PATCH] added From: header to the mail notification git-svn-id: https://develop.svn.wordpress.org/trunk@1707 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/install.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-admin/install.php b/wp-admin/install.php index ccb8a3e8a0..4a37aa443b 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -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'].' '; +$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(); ?>