Changeset 1733
- Timestamp:
- 10/04/2004 07:44:04 AM (20 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/users.php
r1702 r1733 96 96 $message .= "Login: $user_login\r\n\r\nE-mail: $user_email"; 97 97 98 @ mail(get_settings('admin_email'), '[' . get_settings('blogname') . '] New User Registration', $message);98 @wp_mail(get_settings('admin_email'), '[' . get_settings('blogname') . '] New User Registration', $message); 99 99 header('Location: users.php'); 100 100 break; -
trunk/wp-includes/functions.php
r1728 r1733 1004 1004 . "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\r\n"; 1005 1005 1006 @ mail($user->user_email, $subject, $notify_message, $message_headers);1006 @wp_mail($user->user_email, $subject, $notify_message, $message_headers); 1007 1007 1008 1008 return true; … … 1047 1047 . "Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"\r\n"; 1048 1048 1049 @ mail($admin_email, $subject, $notify_message, $message_headers);1049 @wp_mail($admin_email, $subject, $notify_message, $message_headers); 1050 1050 1051 1051 return true; … … 1797 1797 } 1798 1798 1799 1800 function wp_mail($to, $subject, $message, $headers = '', $more = '') { 1801 if ( function_exists('mb_send_mail') ) 1802 return mb_send_mail($to, $subject, $message, $headers, $more); 1803 else 1804 return mail($to, $subject, $message, $headers, $more); 1805 } 1806 1799 1807 ?> -
trunk/wp-login.php
r1732 r1733 149 149 $message .= get_settings('siteurl') . '/wp-login.php'; 150 150 151 $m = mail($user_email, sprintf(__("[%s] Your login and password"), get_settings('blogname')), $message);151 $m = wp_mail($user_email, sprintf(__("[%s] Your login and password"), get_settings('blogname')), $message); 152 152 153 153 if ($m == false) { … … 159 159 echo "<a href='wp-login.php' title='" . __('Check your e-mail first, of course') . "'>" . __('Click here to login!') . '</a></p>'; 160 160 // send a copy of password change notification to the admin 161 mail(get_settings('admin_email'), sprintf(__('[%s] Password Lost/Change'), get_settings('blogname')), sprintf(__('Password Lost and Changed for user: %s'), $user_login));161 wp_mail(get_settings('admin_email'), sprintf(__('[%s] Password Lost/Change'), get_settings('blogname')), sprintf(__('Password Lost and Changed for user: %s'), $user_login)); 162 162 die(); 163 163 } -
trunk/wp-register.php
r1667 r1733 104 104 $message = sprintf(__("New user registration on your blog %1\$s:\n\nLogin: %2\$s \n\nE-mail: %3\$s"), get_settings('blogname'), $user_login, $user_email); 105 105 106 @ mail(get_settings('admin_email'), sprintf(__('[%s] New User Registration'), get_settings('blogname')), $message);106 @wp_mail(get_settings('admin_email'), sprintf(__('[%s] New User Registration'), get_settings('blogname')), $message); 107 107 108 108 ?>
Note: See TracChangeset
for help on using the changeset viewer.