"WordPress" is the default sender name in this wordpress and the default sender email
address is wordpress@yoursite.com. These may be overridden by including
a header.
Code:
<?php
function wp_new_blog_notification($blog_title, $blog_url, $user_id, $password) {
$user = new WP_User( $user_id );
$email = $user->user_email;
$name = $user->user_login;
$message = sprintf(__("Your new WordPress site has been successfully set up at:
%1\$s
You can log in to the administrator account with the following information:
Username: %2\$s
Password: %3\$s
We hope you enjoy your new site. Thanks!
--The WordPress Team
http://wordpress.org/
"), $blog_url, $name, $password);
@wp_mail($email, __('New WordPress Site'), $message);
}
?>
Mail Form:
<?php
$client_message = '
[SUBJECT-STR]Registration Email[SUBJECT-END]<p>Dear [#user_name#],</p>
<p>You can log in with the following information:</p>
<p>Username: [#user_login#]</p>
<p>Password: [#user_password#]</p>
<p>You can login from $store_login_url or the URL is : [#site_login_url_link#].</p>
<p>We hope you enjoy. Thanks!</p>
<p>[#site_name#]</p>
';
echo $client_message;
?>
*** WordPress Plugin
Code:
<?php
function wp_new_blog_notification($blog_title, $blog_url, $user_id, $password) {
$user = new WP_User( $user_id );
$email = $user->user_email;
$name = $user->user_login;
$message = sprintf(__("Your new WordPress site has been successfully set up at:
%1\$s
You can log in to the administrator account with the following information:
Username: %2\$s
Password: %3\$s
We hope you enjoy your new site. Thanks!
--The WordPress Team
http://wordpress.org/
"), $blog_url, $name, $password);
@wp_mail($email, __('New WordPress Site'), $message);
}
?>
Mail Form:
<?php
$client_message = '
[SUBJECT-STR]Registration Email[SUBJECT-END]<p>Dear [#user_name#],</p>
<p>You can log in with the following information:</p>
<p>Username: [#user_login#]</p>
<p>Password: [#user_password#]</p>
<p>You can login from $store_login_url or the URL is : [#site_login_url_link#].</p>
<p>We hope you enjoy. Thanks!</p>
<p>[#site_name#]</p>
';
echo $client_message;
?>
*** WordPress Plugin
No comments:
Post a Comment