HEX
Server: Apache
System: Linux ecngx285.inmotionhosting.com 4.18.0-553.79.1.lve.el8.x86_64 #1 SMP Wed Oct 15 17:59:35 UTC 2025 x86_64
User: zeusxp5 (3862)
PHP: 8.3.28
Disabled: NONE
Upload Files
File: /home/zeusxp5/zenoxpressalongside.net/wp-content/plugins/username-updater/includes/mail.php
<?php
/**
 * User update Page
 *
 * @package     mail page
 * @since       1.0.6
 */
// Exit if accessed directly
	if( ! defined( 'ABSPATH' ) ) {
		exit;
	}
	    $to = $user_info->user_email;
        $blogname = get_option('blogname');
        $siteurl  = get_option('siteurl');
		$subject  = 'username changed';
		$headers  = "MIME-Version: 1.0" . "\r\n";
        $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
        $headers .= "From: $blogname <donotreply@site.com>" .  "\r\n";
		$message  = "
		<html>
		  <head>
		    <title>Username Updated</title>
		  </head>
		  <body>
		    <p>Hi, User</p>
		    <p>Your username has been updated for the site $siteurl. Your new username is <b>$name</b></p>
		    <p>Thank You,<br/>$blogname Team</p>
		  </body>
		</html>
		";
		if ( wp_mail( $to, $subject, $message, $headers )) {
			 echo '<div class="updated"><p><strong>Mail Sent to the user</strong></p></div>'; 
		}
		else {
			 echo '<div class="error"><p><strong>Error: Mail could not be sent</strong></p></div>'; 
		}