<?php







/**







 * Fired during plugin activation







 * a.sensfrx.ai







 * @link       https://sensfrx.ai







 * @since      1.0.0







 * a.sensfrx.ai







 * @package    SensFRX







 * @subpackage SensFRX/admin/email-templates







 */







/**







 * Fired for trigger the Email.







 * a.sensfrx.ai







 * This class defines all email templete to execute during the plugin response time.







 *







 * @since      1.0.0







 * @package    SensFRX







 * @subpackage SensFRX/admin/email-templates







 */







class SensFRX_email_template {







	/**

	 * Get Default Email Message based on type

	 * Returns pre-formatted default messages for different fraud scenarios

	 * 

	 * @param string $type Email type (transaction_allow, transaction_challenge, transaction_deny, etc.)

	 * @return array Array with 'subject' and 'message' keys

	 */

	public static function get_default_message($type) {

		$defaults = array(

			'transaction_allow' => array(

				'subject' => 'Important: Recent Transaction and Security Notification',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p style="margin-bottom: 15px;">Dear {$fullname},<br><br>

								We wanted to bring to your attention a matter concerning a transaction on your account.

								We have identified a successful transaction attempt from your account for {$amount} on {$date} that appeared to have some characteristics indicative of potential suspicious activity.</p>

								

								<p style="font-size: 14px;">

									There is some unusual activity detected on this account. Did you recently use this device to perform some activity?

								</p>

								

								<table style="width: 100%; border-collapse: collapse;">

									<thead>

										<tr>

											<th style="border: 1px solid black; padding: 8px; text-align: center;">Device</th>

											<th style="border: 1px solid black; padding: 8px; text-align: center;" scope="col">IP Address</th>

											<th style="border: 1px solid black; padding: 8px; text-align: center;" scope="col">Location</th>

											<th style="border: 1px solid black; padding: 8px; text-align: center;" scope="col">Time</th>

										</tr>

									</thead>

									<tbody>

										<tr>

											<td style="border: 1px solid black; padding: 8px; text-align: center;">{$device_name}</td>

											<td style="border: 1px solid black; padding: 8px; text-align: center;">{$ip_address}</td>

											<td style="border: 1px solid black; padding: 8px; text-align: center;">{$location}</td>

											<td style="border: 1px solid black; padding: 8px; text-align: center;">{$date} {$time}</td>

										</tr>

									</tbody>

								</table>

								

								<br><br>

								To ensure your accounts security, we recommend taking prompt action. Consider changing your password and reviewing your account settings.</p>

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'transaction_challenge' => array(

				'subject' => 'Important: Recent Transaction and Security Notification',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p style="margin-bottom: 15px;">Dear {$fullname},<br><br>

									We wanted to bring a matter to your immediate attention regarding a recent transaction activity from your account.<br> 

									We have identified a suspicious successful transaction attempt on your account for {$amount} on {$date}.<br>

									Click below to let us know if this was you or not. If not, we advise changing your password immediately to protect your account.

								</p>

								

								<div style="text-align: center;margin: 0 auto;">

									<a href="{$allow_url}" style="color: #fff;background-color: #337ab7;margin-right:10px;padding: 6px 12px;border-radius: 4px; text-decoration: none !important;">

										This was me

									</a>

									<br><br>

									<a href="{$deny_url}" style="color: #fff;background-color: #c9302c;padding: 6px 12px;border-radius: 4px; text-decoration: none !important;">

										This was not me

									</a>

								</div>

								

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'transaction_deny' => array(

				'subject' => 'Urgent: Highly Suspicious Transaction Detected on Your Account',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p style="margin-bottom: 15px;">Dear {$client_full_name},<br><br>

									We have blocked a highly suspicious transaction from your account for {$amount} on {$date}.<br>

									For security purposes, we kindly request that you reset your password to regain access to your account.

								</p>

								

								<p>

									Within the next few minutes, you would receive a follow-up email containing a secure link to initiate the password reset process. Please keep an eye on your inbox to set a new password.

								</p>

								

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'transaction_review_approve' => array(

				'subject' => 'Order Approved - Confirmation',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p style="margin-bottom: 15px;">Dear {$client_full_name},<br><br>

								Good news! Your order <strong>#{$order_id}</strong> has passed our final review and is confirmed.<br>

								We\'ll begin processing your order shortly. If you have any questions or need assistance, feel free to contact us.</p>

								

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'transaction_review_approve_payment' => array(

				'subject' => 'Order Approved - Complete Your Payment',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p style="margin-bottom: 15px;">Dear {$client_full_name},<br><br>

								Your order <strong>#{$order_id}</strong> has been approved and is now ready for payment.<br>

								Please complete your payment by clicking the button below:</p>

								

								<div style="text-align: center;margin: 0 auto;">

									<a href="{$payment_url}" style="color: #fff;background-color: #337ab7;padding: 6px 12px;border-radius: 4px; text-decoration: none !important;">

										Pay Now

									</a>

								</div>

								

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'transaction_review_deny' => array(

				'subject' => 'Order Cancellation Notice',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p style="margin-bottom: 15px;">Dear {$client_full_name},<br><br>

								We regret to inform you that your order <strong>#{$order_id}</strong> has been canceled and will not be processed further.<br>

								If you believe this was a mistake or need further assistance, feel free to contact our support team.</p>

								

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'login_allow' => array(

				'subject' => 'Login Notification',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p>Dear {$client_full_name},</p>

								<p>A successful login to your account was detected on {$date} at {$time}.</p>

								<p>If this was you, no action is needed. If you did not log in, please secure your account immediately.</p>

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'login_challenge' => array(

				'subject' => 'Suspicious Login Attempt Detected',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p>Dear {$client_full_name},</p>

								<p>We detected a login attempt to your account that may require verification.</p>

								<p>Was this you?</p>

								

								<div style="text-align: center;margin: 0 auto;">

									<a href="{$allow_url}" style="color: #fff;background-color: #337ab7;margin-right:10px;padding: 6px 12px;border-radius: 4px; text-decoration: none !important;">

										Yes, This Was Me

									</a>

									<br><br>

									<a href="{$deny_url}" style="color: #fff;background-color: #c9302c;padding: 6px 12px;border-radius: 4px; text-decoration: none !important;">

										No, This Wasn\'t Me

									</a>

								</div>

								

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'login_deny' => array(

				'subject' => 'Account Security Alert - Login Blocked',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p>Dear {$client_full_name},</p>

								<p>A suspicious login attempt to your account was blocked for your security.</p>

								<p>We recommend changing your password immediately if you did not attempt this login.</p>

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'registration_allow' => array(

				'subject' => 'Welcome! Registration Successful',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p>Dear {$fullname},</p>

								<p>Your account has been successfully created.</p>

								<p>Welcome to {$default_brand_name}!</p>

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'registration_challenge' => array(

				'subject' => 'Registration Verification Required',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p>Dear {$full_name},</p>

								<p>Your registration requires verification for security purposes.</p>

								<p>Please check your email for verification instructions.</p>

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'registration_deny' => array(

				'subject' => 'Registration Review Required',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p>Dear {$client_full_name},</p>

								<p>Your registration requires additional review.</p>

								<p>Our team will contact you shortly.</p>

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			// After Payment Templates (succeeded)

			'transaction_allow_after' => array(

				'subject' => 'Important: Recent Transaction and Security Notification',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p style="margin-bottom: 15px;">Dear {$fullname},<br><br>

								We wanted to bring to your attention a matter concerning a transaction on your account. 

								We have identified a successful transaction succeeded from your account for {$amount} on {$date} that appeared to have some characteristics indicative of potential suspicious activity.</p>

								

								<p style="font-size: 14px;">

									There is some unusual activity detected on this account. Did you recently use this device to perform some activity?

								</p>

								

								<table style="width: 100%; border-collapse: collapse;">

									<thead>

										<tr>

											<th style="border: 1px solid black; padding: 8px; text-align: center;">Device</th>

											<th style="border: 1px solid black; padding: 8px; text-align: center;" scope="col">IP Address</th>

											<th style="border: 1px solid black; padding: 8px; text-align: center;" scope="col">Location</th>

											<th style="border: 1px solid black; padding: 8px; text-align: center;" scope="col">Time</th>

										</tr>

									</thead>

									<tbody>

										<tr>

											<td style="border: 1px solid black; padding: 8px; text-align: center;">{$device_name}</td>

											<td style="border: 1px solid black; padding: 8px; text-align: center;">{$ip_address}</td>

											<td style="border: 1px solid black; padding: 8px; text-align: center;">{$location}</td>

											<td style="border: 1px solid black; padding: 8px; text-align: center;">{$date} {$time}</td>

										</tr>

									</tbody>

								</table>

								

								<br><br>

								To ensure your accounts security, we recommend taking prompt action. Consider changing your password and reviewing your account settings.</p>

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'transaction_challenge_after' => array(

				'subject' => 'Important: Recent Transaction and Security Notification',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p style="margin-bottom: 15px;">Dear {$fullname},<br><br>

									We wanted to bring a matter to your immediate attention regarding a recent transaction activity from your account.<br> 

									We have identified a suspicious successful transaction succeeded on your account for {$amount} on {$date}.<br>

									Currently, We have marked this order as on hold. If this was not you, please contact the administrator as soon as possible to secure your account.<br><br>

									Click below to let us know if this was you or not. If not, we advise changing your password immediately to protect your account.

								</p>

								

								<div style="text-align: center;margin: 0 auto;">

									<a href="{$allow_url}" style="color: #fff;background-color: #337ab7;margin-right:10px;padding: 6px 12px;border-radius: 4px; text-decoration: none !important;">

										This was me

									</a>

									<br><br>

									<a href="{$deny_url}" style="color: #fff;background-color: #c9302c;padding: 6px 12px;border-radius: 4px; text-decoration: none !important;">

										This was not me

									</a>

								</div>

								

								<br><br>

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'transaction_deny_after' => array(

				'subject' => 'Urgent: Highly Suspicious Transaction Detected on Your Account',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p style="margin-bottom: 15px;">Dear {$client_full_name},<br><br>

									We have blocked a highly suspicious transaction from your account for {$amount} on {$date}.<br>

									We have marked this order as cancelled for security purposes. If this was not you, please contact the administrator.<br><br>

									For security purposes, we kindly request that you reset your password to regain access to your account.

								</p>

								

								<p>

									Within the next few minutes, you would receive a follow-up email containing a secure link to initiate the password reset process. Please keep an eye on your inbox to set a new password.

								</p>

								

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'webhook_deny' => array(

				'subject' => 'Urgent: Highly Suspicious Activity Detected on Your Account - Webhook [ Real Time Action ]',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p style="margin-bottom: 15px;">Dear <strong> {$client_full_name} </strong>,<br><br>

									We have blocked a highly suspicious activity from your account and log out the User.<br>

								</p>

								

								<p>

									Within the next few minutes, you would receive a follow-up email containing a secure link to initiate the password reset process. Please keep an eye on your inbox to set a new password.

								</p>

								

								<p style="font-size: 14px;"><br>Regards,<br>{$default_brand_name} Team</p>

							</div>

						</div>

					</div>'

			),

			'comment_medium' => array(

				'subject' => 'Alert: Unusual Comment Activity Detected',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p style="margin-bottom: 15px;">Dear {$fullname},<br><br>

								Our systems detected a comment submitted on {$date} that shows signs of automated or suspicious behavior. This has been classified as <strong>medium severity</strong>. 

								While the comment has been approved, we recommend reviewing it manually to ensure it aligns with your standards.</p>

								

								<br><br>

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'comment_high' => array(

				'subject' => 'Warning: Suspicious Comment Detected',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p style="margin-bottom: 15px;">Dear {$fullname},<br><br>

								A comment submitted on {$date} has been flagged as <strong>high risk</strong> for spam or malicious content.

								The comment has been held for moderation. Please review it in your admin panel.</p>

								

								<br><br>

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'comment_critical' => array(

				'subject' => 'Critical: Malicious Comment Blocked',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p style="margin-bottom: 15px;">Dear {$fullname},<br><br>

								A <strong>critical risk</strong> comment was automatically blocked on {$date}.

								The comment showed signs of malicious intent and was not published.</p>

								

								<br><br>

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'profile_update_allow' => array(

				'subject' => 'Profile Update Notification',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p style="margin-bottom: 15px;">Dear {$client_full_name},<br><br>

								Your profile was updated on {$date}. 

								If this was not you, please contact support immediately.</p>

								

								<br><br>

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'profile_update_challenge' => array(

				'subject' => 'Suspicious Profile Update Detected',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p style="margin-bottom: 15px;">Dear {$client_full_name},<br><br>

								A suspicious profile update was detected on your account on {$date}.

								Please verify this was you.</p>

								

								<div style="text-align: center;margin: 0 auto;">

									<a href="{$allow_url}" style="color: #fff;background-color: #337ab7;margin-right:10px;padding: 6px 12px;border-radius: 4px; text-decoration: none !important;">

										This was me

									</a>

									<br><br>

									<a href="{$deny_url}" style="color: #fff;background-color: #c9302c;padding: 6px 12px;border-radius: 4px; text-decoration: none !important;">

										This was not me

									</a>

								</div>

								

								<br><br>

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			),

			'profile_update_deny' => array(

				'subject' => 'Critical: Profile Update Blocked',

				'message' => '

					<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p style="margin-bottom: 15px;">Dear {$client_full_name},<br><br>

								A highly suspicious profile update attempt was blocked on {$date} for security reasons.

								Please reset your password immediately if you did not attempt this update.</p>

								

								<br><br>

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

			)

		);

		

		return isset($defaults[$type]) ? $defaults[$type] : array(

			'subject' => 'Security Notification',

			'message' => '<div style="font-family: Arial, sans-serif; background-color: #f7f7f7; padding: 20px;">

						<div style="background-color: #ffffff; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); padding: 20px;">

							<div style="font-size: 14px; line-height: 1.5;">

								<p>We wanted to notify you about an activity on your account.</p>

								<p style="font-size: 14px;">{$default_brand_name}</p>

							</div>

						</div>

					</div>'

		);

	}



	/**







	 * Universal Email Wrapper - Wraps any message in professional HTML email template







	 *







	 * This method provides a consistent, professional email format for all risk-based







	 * fraud detection emails. It wraps plain text or simple HTML messages in a 







	 * fully-styled, responsive email template.







	 *







	 * @since    1.0.0







	 * @param    string    $to           Recipient email address







	 * @param    string    $subject      Email subject line







	 * @param    string    $message      Email message content (plain text or simple HTML)







	 * @param    string    $site_title   Site/brand title for email footer







	 * @param    array     $replacements Optional array of placeholder replacements







	 * @return   bool                    True if email sent successfully, false otherwise







	 */







	public static function wrap_and_send($to, $subject, $message, $site_title, $replacements = array()) {



		// Apply any placeholder replacements to subject and message

		if (!empty($replacements)) {

			$subject = strtr($subject, $replacements);

			$message = strtr($message, $replacements);

		}



		// Build the complete HTML email

		$body = '<!doctype html>' . 

		'<html>' . 

			'<head>' . 

				'<meta name="viewport" content="width=device-width">' . 

				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 

				'<title>' . esc_html($subject) . '</title>' . 

			'</head>' . 

			'<body style="margin: 0; padding: 0;">' . 

				$message . 

			'</body>' . 

		'</html>';



		// Set HTML email headers

		$headers = array('Content-Type: text/html; charset=UTF-8');



		// Force WordPress to send HTML emails

		add_filter('wp_mail_content_type', function() {

			return 'text/html';

		});



		// Send the email

		$mailResult = wp_mail($to, $subject, $body, $headers);



		// Remove the filter after sending



		remove_filter('wp_mail_content_type', function() {



			return 'text/html';



		});



		



		return $mailResult;







	}







	/**







	 * Short Description. (use period)







	 *







	 * Long Description.







	 *







	 * @since    1.0.0







	 */







	public static function regitstration_Medium($to, $site_title, $device = array()) {







		$subject = 'Important: Recent Registration and Security Notification';







		$body = '<!doctype html>' . 







		'<html>' . 







			'<head>' . 







				'<meta name="viewport" content="width=device-width">' . 







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 







				'<title>' . $subject . '</title>' . 







			'</head>' . 







			'<body style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">' . 







				'<span style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' . 







				'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;">' . 







					'<tr>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; Margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' . 







							'<div style="box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;">' . 







								'<table style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">' . 







									'<tr>' . 







										'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' . 







											'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">We wanted to bring to your attention a matter concerning a recent registration attempt on your account. </p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">We have identified a recent registration attempt for your account that appears to have characteristics indicative of potential fraudulent activity.</p>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">To ensure your account\'s security, we recommend taking prompt action. Consider changing your password and reviewing your account settings. If this registration was not initiated by you, please contact our support team immediately.</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Regards,<br>' . $site_title . ' Team</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; Margin-bottom: 0px; color: #999999;">This email is shot from sensfrx.ai.</p>' . 







													'</td>' . 







												'</tr>' . 







											'</table>' . 







										'</td>' . 







									'</tr>' . 







								'</table>' . 







								'<div style="clear: both; Margin-top: 10px; text-align: center; width: 100%;">' . 







									'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







										'<tr>' . 







											'<td style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' . 







												'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">sensfrx.ai</a>.' . 







											'</td>' . 







										'</tr>' . 







									'</table>' . 







								'</div>' . 







							'</div>' . 







						'</td>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







					'</tr>' . 







				'</table>' . 







			'</body>' . 







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = wp_mail( $to, $subject, $body, $headers );







		return $mailResult;







	}















	public static function regitstration_Challenge($to, $site_title, $device = array()) {







		$subject = 'Important: Suspicious Registration Detected on Your Account';







		$body = '<!doctype html>' . 







		'<html>' . 







			'<head>' . 







				'<meta name="viewport" content="width=device-width">' . 







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 







				'<title>' . $subject . '</title>' . 







			'</head>' . 







			'<body style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">' . 







				'<span style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' . 







				'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;">' . 







				'<tr>' . 







				'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







				'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; Margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' . 







				'<div style="box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;">' . 







				'<!-- START CENTERED WHITE CONTAINER -->' . 







				'<table style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">' . 







				'<!-- START MAIN CONTENT AREA -->' . 







				'<tr>' . 







				'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' . 







				'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







				'<tr>' . 







				'<td>' . 







				'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">We wanted to bring to your attention a matter concerning a challenge on your account.</p>' . 







				'</td>' . 







				'</tr>' . 







				'<tr>' . 







				'<td>' . 







				'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">We have identified a suspicious registration from your account.</p>' . 







				'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">Click below to let us know if this was you or not. If not, we advise changing your password immediately to protect your account.</p>' . 







				'</td>' . 







				'</tr>' . 







				'<tr>' . 







				'<td>' . 







				'<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; border-collapse: collapse; margin-bottom: 15px;">' . 







				'<tr>' . 







				'<th style="border: 1px solid rgba(0, 0, 0, 1);">Device</th>' . 







				'<th style="border: 1px solid rgba(0, 0, 0, 1);">IP Address</th>' . 







				'<th style="border: 1px solid rgba(0, 0, 0, 1);">Location</th>' . 







				'</tr>' . 







				'<tr>' . 







				'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['name'] . '</td>' . 







				'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['ip'] . '</td>' . 







				'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['location'] . '</td>' . 







				'</tr>' . 







				'</table>' . 







				'</td>' . 







				'</tr>' . 







				'<tr>' . 







				'<td>' . 







				'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;"><a href="' . site_url() . '?as_did_1337575=' . $device['device_id'] . '&asda_ac=1" style="display: inline-block; font-weight: 400; line-height: 1.5; color: #fff; text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; background-color: #0d6efd; border: 1px solid #0d6efd; padding: 4px 12px; font-size: 14px; border-radius: 0.25rem; margin-right: 10px;">This was me</a><a href="' . site_url() . '?as_did_1337575=' . $device['device_id'] . '&asda_ac=0" style="display: inline-block; font-weight: 400; line-height: 1.5; color: #fff; text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; background-color: #bb2d3b; border: 1px solid #b02a37; padding: 4px 12px; font-size: 14px; border-radius: 0.25rem;">This was not me</a></p>' . 







				'</td>' . 







				'</tr>' . 







				'<tr>' . 







				'<td>' . 







				'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">Regards,<br>' . $site_title . ' Team</p>' . 







				'</td>' . 







				'</tr>' . 







				'<tr>' . 







				'<td>' . 







				'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; margin-bottom: 0px; color: #999999;">This email is shot from sensfrx.ai.</p>' . 







				'</td>' . 







				'</tr>' . 







				'</table>' . 







				'</td>' . 







				'</tr>' . 







				'<!-- END MAIN CONTENT AREA -->' . 







				'</table>' . 







				'<!-- START FOOTER -->' . 







				'<div style="clear: both; margin-top: 10px; text-align: center; width: 100%;">' . 







				'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







				'<tr>' . 







				'<td style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' . 







				'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">sensfrx.ai</a>.' . 







				'</td>' . 







				'</tr>' . 







				'</table>' . 







				'</div>' . 







				'<!-- END FOOTER -->' . 







				'<!-- END CENTERED WHITE CONTAINER -->' . 







				'</div>' . 







				'</td>' . 







				'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







				'</tr>' . 







				'</table>' . 







			'</body>' . 







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = wp_mail( $to, $subject, $body, $headers );







		return $mailResult;







	}















	public static function regitstration_Deny($to, $site_title, $device = array()) {







		$subject = 'Urgent: Highly Suspicious Registration Detected on Your Account';







		$body = '<!doctype html>' . 







		'<html>' . 







			'<head>' . 







				'<meta name="viewport" content="width=device-width">' . 







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 







				'<title>' . $subject . '</title>' . 







			'</head>' . 







			'<body style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">' . 







				'<span class="preheader" style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' . 







				'<table border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;">' . 







					'<tr>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







						'<td class="container" style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; Margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' . 







						'<div class="content" style="box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;">' . 







							'<!-- START CENTERED WHITE CONTAINER -->' . 







							'<table class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">' . 







								'<!-- START MAIN CONTENT AREA -->' . 







								'<tr>' . 







									'<td class="wrapper" style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' . 







									'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







										'<tr>' . 







											'<td>' . 







												'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">We have blocked a highly suspicious registration from your account.</p>' . 







												'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">For your security, please verify any recent activity on your account that seems unfamiliar.</p>' . 







												'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">If you did not initiate this registration, Ignore it.</p>' . 







											'</td>' . 







										'</tr>' . 







										'<tr>' . 







											'<td>' . 







												'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">Regards,<br>' . $site_title . ' Team</p>' . 







											'</td>' . 







										'</tr>' . 







										'<tr>' . 







											'<td>' . 







												'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; margin-bottom: 0px; color: #999999;">This email is shot from sensfrx.ai.</p>' . 







											'</td>' . 







										'</tr>' . 







									'</table>' . 







									'</td>' . 







								'</tr>' . 







								'<!-- END MAIN CONTENT AREA -->' . 







							'</table>' . 







							'<!-- START FOOTER -->' . 







							'<div class="footer" style="clear: both; margin-top: 10px; text-align: center; width: 100%;">' . 







							'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







								'<tr>' . 







								'<td class="content-block powered-by" style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' . 







									'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">sensfrx.ai</a>.' . 







								'</td>' . 







								'</tr>' . 







							'</table>' . 







							'</div>' . 







							'<!-- END FOOTER -->' . 







						'<!-- END CENTERED WHITE CONTAINER -->' . 







						'</div>' . 







						'</td>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







					'</tr>' . 







				'</table>' . 







			'</body>' . 







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = wp_mail( $to, $subject, $body, $headers );







		return $mailResult;







	}















	public static function login_Medium($to, $first_name, $site_title, $device = array()) {







		$subject = 'Unusual activity detected on this account';







		$body = '<!doctype html>' .







		'<html>' .







			'<head>' .







				'<meta name="viewport" content="width=device-width">' .







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' .







				'<title>' . $subject . '</title>' .







			'</head>' .







			'<body style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">' .







				'<span style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' .







				'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; width: 100%; background-color: #f6f6f6;">' .







					'<tr>' .







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' .







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' .







							'<div style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px;">' .







								'<table style="border-collapse: separate; width: 100%; background: #ffffff; border-radius: 3px;">' .







									'<tr>' .







										'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' .







											'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; width: 100%;">' .







												'<tr>' .







													'<td>' .







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 20px 0;">Hi <strong>' . $first_name . '</strong>,</p>' .







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">There is some unusual activity detected on this account. Did you recently use this device to perform some activity?</p>' .







													'</td>' .







												'</tr>' .







												'<tr>' .







													'<td>' .







														'<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; border-collapse: collapse; margin-bottom: 15px;">' .







															'<tr>' .







																'<th style="border: 1px solid rgba(0, 0, 0, 1);">Device</th>' .







																'<th style="border: 1px solid rgba(0, 0, 0, 1);">IP Address</th>' .







																'<th style="border: 1px solid rgba(0, 0, 0, 1);">Location</th>' .







															'</tr>' .







															'<tr>' .







																'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['name'] . '</td>' .







																'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['ip'] . '</td>' .







																'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['location'] . '</td>' .







															'</tr>' .







														'</table>' .







													'</td>' .







												'</tr>' .







												'<tr>' .







													'<td>' .







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;"><a href="' . site_url() . '?as_did_1337575=' . $device['device_id'] . '&asda_ac=1" style="display: inline-block; font-weight: 400; line-height: 1.5; color: #fff; text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; background-color: #0d6efd; border: 1px solid #0d6efd; padding: 4px 12px; font-size: 14px; border-radius: 0.25rem; margin-right: 10px;">This was me</a><a href="' . site_url() . '?as_did_1337575=' . $device['device_id'] . '&asda_ac=0" style="display: inline-block; font-weight: 400; line-height: 1.5; color: #fff; text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; background-color: #bb2d3b; border: 1px solid #b02a37; padding: 4px 12px; font-size: 14px; border-radius: 0.25rem;">This was not me</a></p>' .







													'</td>' .







												'</tr>' .







												'<tr>' .







													'<td>' .







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">Regards,<br>' . $site_title . ' Team</p>' .







													'</td>' .







												'</tr>' .







												'<tr>' .







													'<td>' .







														'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; margin-bottom: 0px; color: #999999;">This email is shot from sensfrx.ai.</p>' .







													'</td>' .







												'</tr>' .







											'</table>' .







										'</td>' .







									'</tr>' .







								'</table>' .







								'<div style="clear: both; margin-top: 10px; text-align: center; width: 100%;">' .







									'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; width: 100%;">' .







										'<tr>' .







											'<td style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' .







												'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">sensfrx.ai</a>.' .







											'</td>' .







										'</tr>' .







									'</table>' .







								'</div>' .







							'</div>' .







						'</td>' .







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' .







					'</tr>' .







				'</table>' .







			'</body>' .







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = $mailResult = wp_mail( $to, $subject, $body, $headers );







		return $mailResult;







	}















	public static function login_Challenge($to, $first_name, $site_title, $device = array()) {







		$subject = 'Suspicious activity detected on this account';







		$body = '<!doctype html>' . 







		'<html>' . 







			'<head>' . 







				'<meta name="viewport" content="width=device-width">' . 







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 







				'<title>' . $subject . '</title>' . 







			'</head>' . 







			'<body class="" style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">' . 







				'<span class="preheader" style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' . 







				'<table border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;">' . 







					'<tr>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







						'<td class="container" style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; Margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' . 







							'<div class="content" style="box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;">' . 







								'<!-- START CENTERED WHITE CONTAINER -->' . 







								'<table class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">' . 







									'<!-- START MAIN CONTENT AREA -->' . 







									'<tr>' . 







										'<td class="wrapper" style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' . 







											'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 20px 0;">Hi <strong>' . $first_name . '</strong>,</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">Suspicious login detected on the below device:</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; border-collapse: collapse; margin-bottom: 15px;">' . 







															'<tr>' . 







																'<th style="border: 1px solid rgba(0, 0, 0, 1);">Device</th>' . 







																'<th style="border: 1px solid rgba(0, 0, 0, 1);">IP Address</th>' . 







																'<th style="border: 1px solid rgba(0, 0, 0, 1);">Location</th>' . 







															'</tr>' . 







															'<tr>' . 







																'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['name'] . '</td>' . 







																'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['ip'] . '</td>' . 







																'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['location'] . '</td>' . 







															'</tr>' . 







														'</table>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">We highly recommend to reset your password on this device if it was you. Click below to reset your password:</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;"><a href="' . $lost_pass_url . '">' . $lost_pass_url . '</a></p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">Regards,<br>' . $site_title . ' Team</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; margin-bottom: 0px; color: #999999;">This email is shot from sensfrx.ai.</p>' . 







													'</td>' . 







												'</tr>' . 







											'</table>' . 







										'</td>' . 







									'</tr>' . 







									'<!-- END MAIN CONTENT AREA -->' . 







								'</table>' . 







								'<!-- START FOOTER -->' . 







								'<div class="footer" style="clear: both; margin-top: 10px; text-align: center; width: 100%;">' . 







									'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







										'<tr>' . 







											'<td class="content-block powered-by" style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' . 







												'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">sensfrx.ai</a>.' . 







											'</td>' . 







										'</tr>' . 







									'</table>' . 







								'</div>' . 







								'<!-- END FOOTER -->' . 







								'<!-- END CENTERED WHITE CONTAINER -->' . 







							'</div>' . 







						'</td>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







					'</tr>' . 







				'</table>' . 







			'</body>' . 







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = $mailResult = wp_mail( $to, $subject, $body, $headers );







		return $mailResult;







	}















	public static function login_Deny($to, $first_name, $site_title, $device = array()) {







		$subject = 'Suspicious Login prevented';







		$body = '<!doctype html>' . 







		'<html>' . 







			'<head>' . 







				'<meta name="viewport" content="width=device-width">' . 







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 







				'<title>' . $subject . '</title>' . 







			'</head>' . 







			'<body style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">' . 







				'<span class="preheader" style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' . 







				'<table border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;">' . 







				'<tr>' . 







					'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







					'<td class="container" style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; Margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' . 







					'<div class="content" style="box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;">' . 







						'<!-- START CENTERED WHITE CONTAINER -->' . 







						'<table class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">' . 







						'<!-- START MAIN CONTENT AREA -->' . 







						'<tr>' . 







							'<td class="wrapper" style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' . 







							'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







								'<tr>' . 







									'<td>' . 







										'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 20px 0;">Dear <strong>' . $first_name . '</strong>,</p>' . 







										'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">We have blocked a highly suspicious login activity.</p>' . 







									'</td>' . 







								'</tr>' . 







								'<tr>' . 







									'<td>' . 







										'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Within the next few minutes, you would receive a follow-up email containing a secure link to initiate the password reset process. Please keep an eye on your inbox to set a new password.</p>' . 







									'</td>' . 







								'</tr>' . 







								'<tr>' . 







									'<td>' . 







										'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Regards,<br>' . $site_title . ' Team</p>' . 







									'</td>' . 







								'</tr>' . 







								'<tr>' . 







									'<td>' . 







										'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; Margin-bottom: 0px; color: #999999;">This email is shot from sensfrx.ai.</p>' . 







									'</td>' . 







								'</tr>' . 







							'</table>' . 







							'</td>' . 







						'</tr>' . 







						'<!-- END MAIN CONTENT AREA -->' . 







						'</table>' . 







						'<!-- START FOOTER -->' . 







						'<div class="footer" style="clear: both; Margin-top: 10px; text-align: center; width: 100%;">' . 







						'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







							'<tr>' . 







							'<td class="content-block powered-by" style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' . 







								'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">sensfrx.ai</a>.' . 







							'</td>' . 







							'</tr>' . 







						'</table>' . 







						'</div>' . 







						'<!-- END FOOTER -->' . 







					'<!-- END CENTERED WHITE CONTAINER -->' . 







					'</div>' . 







					'</td>' . 







					'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







				'</tr>' . 







				'</table>' . 







			'</body>' . 







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = $mailResult = wp_mail( $to, $subject, $body, $headers );







		return $mailResult;







	}















	public static function paymentAttempt_Medium($to, $last_name, $first_name, $product_total, $formattedDate, $site_title, $device = array()) {







		$subject = 'Important: Recent Transaction and Security Notification';







		$body = '<!doctype html>' . 







		'<html>' . 







			'<head>' . 







				'<meta name="viewport" content="width=device-width">' . 







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 







				'<title>' . $subject . '</title>' . 







			'</head>' . 







			'<body style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">' . 







				'<span class="preheader" style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' . 







				'<table border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;">' . 







					'<tr>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







						'<td class="container" style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; Margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' . 







							'<div class="content" style="box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;">' . 







								'<!-- START CENTERED WHITE CONTAINER -->' . 







								'<table class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">' . 







									'<!-- START MAIN CONTENT AREA -->' . 







									'<tr>' . 







										'<td class="wrapper" style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' . 







											'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 20px 0;">Dear <strong>' . $first_name . ' ' . $last_name . '</strong>,</p>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">We wanted to bring to your attention a matter concerning a transaction on your account. </p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">We have identified a successful transaction from your account for <b>Amount</b> ' . $product_total . ' on <b>' . $formattedDate . '</b> that appeared to have some characteristics indicative of potential suspicious activity.</p>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">To ensure your account\'s security, we recommend taking prompt action. Consider changing your password and reviewing your account settings. </p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Regards,<br>' . $site_title . ' Team</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; Margin-bottom: 0px; color: #999999;">This email is shot from sensfrx.ai.</p>' . 







													'</td>' . 







												'</tr>' . 







											'</table>' . 







										'</td>' . 







									'</tr>' . 







									'<!-- END MAIN CONTENT AREA -->' . 







								'</table>' . 







								'<!-- START FOOTER -->' . 







								'<div class="footer" style="clear: both; Margin-top: 10px; text-align: center; width: 100%;">' . 







									'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







										'<tr>' . 







											'<td class="content-block powered-by" style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' . 







												'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">sensfrx.ai</a>.' . 







											'</td>' . 







										'</tr>' . 







									'</table>' . 







								'</div>' . 







								'<!-- END FOOTER -->' . 







							'</div>' . 







						'</td>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







					'</tr>' . 







				'</table>' . 







			'</body>' . 







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = wp_mail( $to, $subject, $body, $headers );







		return $mailResult;







	}















	public static function paymentAttempt_Challenge($to, $last_name, $first_name, $product_total, $formattedDate, $site_title, $device = array()) {







		$subject = 'Important: Suspicious Transaction Detected on Your Account';







		$body = '<!doctype html>' . 







		'<html>' . 







			'<head>' . 







				'<meta name="viewport" content="width=device-width">' . 







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 







				'<title>' . $subject . '</title>' . 







			'</head>' . 







			'<body style="background-color: #f6f6f6; font-family: sans-serif; font-size: 14px; line-height: 1.4; margin: 0; padding: 0;">' . 







				'<span style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' . 







				'<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; background-color: #f6f6f6;">' . 







					'<tr>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' . 







							'<div style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px;">' . 







								'<table style="width: 100%; background: #ffffff; border-radius: 3px;">' . 







									'<tr>' . 







										'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' . 







											'<table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 20px 0;">Dear <strong>' . $first_name . ' ' . $last_name . '</strong>,</p>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 15px 0;">We wanted to bring a matter to your immediate attention regarding a recent transaction activity from your account.</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 15px 0;">We have identified a successful transaction from your account for <b>Amount</b> ' . $product_total . ' on <b>' . $formattedDate . '</b>.</p>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 15px 0;">Click below to let us know if this was you or not. If not, we advise changing your password immediately to protect your account.</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; border-collapse: collapse; margin-bottom: 15px;">' . 







															'<tr>' . 







																'<th style="border: 1px solid #000; text-align: left;">Device</th>' . 







																'<th style="border: 1px solid #000; text-align: left;">IP Address</th>' . 







																'<th style="border: 1px solid #000; text-align: left;">Location</th>' . 







															'</tr>' . 







															'<tr>' . 







																'<td style="border: 1px solid #000; text-align: center;">' . $device['name'] . '</td>' . 







																'<td style="border: 1px solid #000; text-align: center;">' . $device['ip'] . '</td>' . 







																'<td style="border: 1px solid #000; text-align: center;">' . $device['location'] . '</td>' . 







															'</tr>' . 







														'</table>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 15px 0;">' . 







															'<a href="' . site_url() . '?as_did_1337575=' . $device['device_id'] . '&asda_ac=1" style="display: inline-block; font-weight: 400; line-height: 1.5; color: #fff; text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; background-color: #0d6efd; border: 1px solid #0d6efd; padding: 4px 12px; font-size: 14px; border-radius: 0.25rem; margin-right: 10px;">This was me</a>' . 







															'<a href="' . site_url() . '?as_did_1337575=' . $device['device_id'] . '&asda_ac=0" style="display: inline-block; font-weight: 400; line-height: 1.5; color: #fff; text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; background-color: #bb2d3b; border: 1px solid #b02a37; padding: 4px 12px; font-size: 14px; border-radius: 0.25rem;">This was not me</a>' . 







														'</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 15px 0;">Regards,<br>' . $site_title . ' Team</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; color: #999999;">This email is shot from sensfrx.ai.</p>' . 







													'</td>' . 







												'</tr>' . 







											'</table>' . 







										'</td>' . 







									'</tr>' . 







								'</table>' . 







								'<div style="clear: both; margin-top: 10px; text-align: center; width: 100%;">' . 







									'<table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">' . 







										'<tr>' . 







											'<td style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' . 







												'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-decoration: none;">sensfrx.ai</a>.' . 







											'</td>' . 







										'</tr>' . 







									'</table>' . 







								'</div>' . 







							'</div>' . 







						'</td>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







					'</tr>' . 







				'</table>' . 







			'</body>' . 







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = wp_mail( $to, $subject, $body, $headers );







		return $mailResult;







	}















	public static function paymentAttempt_Deny($to, $last_name, $first_name, $product_total, $formattedDate, $site_title, $device = array()) {







		$subject = 'Urgent: Highly Suspicious Transaction Detected on Your Account';







		$body = '<!doctype html>' . 







		'<html>' . 







			'<head>' . 







				'<meta name="viewport" content="width=device-width">' . 







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 







				'<title>' . $subject . '</title>' . 







			'</head>' . 







			'<body style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">' . 







				'<span class="preheader" style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' . 







				'<table border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;">' . 







				'<tr>' . 







					'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







					'<td class="container" style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; Margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' . 







						'<div class="content" style="box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;">' . 







							'<!-- START CENTERED WHITE CONTAINER -->' . 







							'<table class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">' . 







							'<!-- START MAIN CONTENT AREA -->' . 







							'<tr>' . 







								'<td class="wrapper" style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' . 







									'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







									'<tr>' . 







										'<td>' . 







											'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 20px 0;">Dear <strong>' . $first_name . ' ' . $last_name . '</strong>,</p>' . 







											'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">We have blocked a highly suspicious transaction from your account for <b>Amount</b> ' . $product_total . ' on ' . $formattedDate . '.</p>' . 







										'</td>' . 







									'</tr>' . 







									'<tr>' . 







										'<td>' . 







											'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Within the next few minutes, you would receive a follow-up email containing a secure link to initiate the password reset process. Please keep an eye on your inbox to set a new password.</p>' . 







										'</td>' . 







									'</tr>' . 







									'<tr>' . 







										'<td>' . 







											'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Regards,<br>' . $site_title . ' Team</p>' . 







										'</td>' . 







									'</tr>' . 







									'<tr>' . 







										'<td>' . 







											'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; Margin-bottom: 0px; color: #999999;">This email is sent from sensfrx.ai.</p>' . 







										'</td>' . 







									'</tr>' . 







									'</table>' . 







								'</td>' . 







							'</tr>' . 







							'<!-- END MAIN CONTENT AREA -->' . 







							'</table>' . 







							'<!-- START FOOTER -->' . 







							'<div class="footer" style="clear: both; Margin-top: 10px; text-align: center; width: 100%;">' . 







								'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







								'<tr>' . 







									'<td class="content-block powered-by" style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' . 







										'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">sensfrx.ai</a>.' . 







									'</td>' . 







								'</tr>' . 







								'</table>' . 







							'</div>' . 







							'<!-- END FOOTER -->' . 







						'<!-- END CENTERED WHITE CONTAINER -->' . 







						'</div>' . 







					'</td>' . 







					'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







				'</tr>' . 







				'</table>' . 







			'</body>' . 







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = wp_mail( $to, $subject, $body, $headers );







		return $mailResult;







	}















	public static function paymentSucceeded_Medium($to, $last_name, $first_name, $Total_Expense, $site_title, $b_email, $b_country, $b_state, $b_city, $b_phone_number, $transaction_id, $order_id, $payment_status1, $device = array()) {







		$subject = 'Payment Successfully Done';







		$body = '<!doctype html>' . 







		'<html>' . 







			'<head>' . 







				'<meta name="viewport" content="width=device-width">' . 







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 







				'<title>' . $subject . '</title>' . 







			'</head>' . 







			'<body style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">' . 







				'<span style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' . 







				'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;">' . 







					'<tr>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' . 







							'<div style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px;">' . 







								'<table style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">' . 







									'<tr>' . 







										'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' . 







											'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 20px 0;">Hi <strong>' . $first_name . ' ' . $last_name . '</strong>,</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p>Thank you for your recent transaction. Your payment of ' . $Total_Expense . ' for ' . $site_title . ' has been successfully processed. If you have any questions or need assistance, please feel free to contact us.</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">Here is some detail about the last order:</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">1) Billing Email - ' . $b_email . '</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">2) IP - ' . $device['ip'] . '</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">3) Location - Country(' . $b_country . '), State(' . $b_state . '), City(' . $b_city . ')</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">4) Billing Phone Number - ' . $b_phone_number . '</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">5) Total Amount of Transaction - ' . $Total_Expense . '</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">6) Transaction ID - ' . $transaction_id . '</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">7) Order ID - ' . $order_id . '</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">8) Order Status - ' . $payment_status1 . '</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; border-collapse: collapse; margin-bottom: 15px;">' . 







															'<tr>' . 







																'<th style="border: 1px solid rgba(0, 0, 0, 1);">Status</th>' . 







																'<th style="border: 1px solid rgba(0, 0, 0, 1);">IP Address</th>' . 







																'<th style="border: 1px solid rgba(0, 0, 0, 1);">Severity</th>' . 







															'</tr>' . 







															'<tr>' . 







																'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $res['status'] . '</td>' . 







																'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['ip'] . '</td>' . 







																'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $res['severity'] . '</td>' . 







															'</tr>' . 







														'</table>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">Thank you for your order. We truly value our loyal customers. Thanks for making us who we are.</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; margin-bottom: 0px; color: #999999;">This email is sent from sensfrx.ai.</p>' . 







													'</td>' . 







												'</tr>' . 







											'</table>' . 







										'</td>' . 







									'</tr>' . 







								'</table>' . 







								'<div style="clear: both; margin-top: 10px; text-align: center; width: 100%;">' . 







									'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







										'<tr>' . 







											'<td style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' . 







												'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">sensfrx.ai</a>.' . 







											'</td>' . 







										'</tr>' . 







									'</table>' . 







								'</div>' . 







							'</div>' . 







						'</td>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







					'</tr>' . 







				'</table>' . 







			'</body>' . 







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = wp_mail( $to, $subject, $body, $headers );







	}















	public static function paymentSucceeded_Challenge($to, $last_name, $first_name, $Total_Expense, $site_title, $b_email, $b_country, $b_state, $b_city, $b_phone_number, $transaction_id, $order_id, $payment_status1, $device = array()) {







		$subject = 'Payment Successfully Done';







		$body = '<!doctype html>' . 







		'<html>' . 







			'<head>' . 







				'<meta name="viewport" content="width=device-width">' . 







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 







				'<title>' . $subject . '</title>' . 







			'</head>' . 







			'<body style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">' . 







				'<span style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' . 







				'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;">' . 







					'<tr>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' . 







							'<div style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px;">' . 







								'<table style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">' . 







									'<tr>' . 







										'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' . 







											'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 20px 0;">Hi <strong>' . $first_name . ' ' . $last_name . '</strong>,</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p>Thank you for your recent transaction. Your payment of ' . $Total_Expense . ' for ' . $site_title . ' has been successfully processed. If you have any questions or need assistance, please feel free to contact us.</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">Here is some detail about the last order:</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">1) Billing Email - ' . $b_email . '</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">2) IP - ' . $device['ip'] . '</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">3) Location - Country(' . $b_country . '), State(' . $b_state . '), City(' . $b_city . ')</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">4) Billing Phone Number - ' . $b_phone_number . '</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">5) Total Amount of Transaction - ' . $Total_Expense . '</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">6) Transaction ID - ' . $transaction_id . '</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">7) Order ID - ' . $order_id . '</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">8) Order Status - ' . $payment_status1 . '</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; border-collapse: collapse; margin-bottom: 15px;">' . 







															'<tr>' . 







																'<th style="border: 1px solid rgba(0, 0, 0, 1);">Status</th>' . 







																'<th style="border: 1px solid rgba(0, 0, 0, 1);">IP Address</th>' . 







																'<th style="border: 1px solid rgba(0, 0, 0, 1);">Severity</th>' . 







															'</tr>' . 







															'<tr>' . 







																'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $res['status'] . '</td>' . 







																'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['ip'] . '</td>' . 







																'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $res['severity'] . '</td>' . 







															'</tr>' . 







														'</table>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">Thank you for your order. We truly value our loyal customers. Thanks for making us who we are.</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; margin-bottom: 0px; color: #999999;">This email is sent from sensfrx.ai.</p>' . 







													'</td>' . 







												'</tr>' . 







											'</table>' . 







										'</td>' . 







									'</tr>' . 







								'</table>' . 







								'<div style="clear: both; margin-top: 10px; text-align: center; width: 100%;">' . 







									'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







										'<tr>' . 







											'<td style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' . 







												'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">sensfrx.ai</a>.' . 







											'</td>' . 







										'</tr>' . 







									'</table>' . 







								'</div>' . 







							'</div>' . 







						'</td>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







					'</tr>' . 







				'</table>' . 







			'</body>' . 







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = wp_mail( $to, $subject, $body, $headers );







	}















	public static function paymentSucceeded_Deny($to, $last_name, $first_name, $product_total, $formattedDate, $site_title, $device = array()) {







		$subject = 'Urgent: Highly Suspicious Transaction Detected on Your Account';







		$body = '<!doctype html>' . 







		'<html>' . 







			'<head>' . 







				'<meta name="viewport" content="width=device-width">' . 







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 







				'<title>' . $subject . '</title>' . 







			'</head>' . 







			'<body style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">' . 







				'<span class="preheader" style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' . 







				'<table border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;">' . 







				'<tr>' . 







					'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







					'<td class="container" style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; Margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' . 







						'<div class="content" style="box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;">' . 







							'<!-- START CENTERED WHITE CONTAINER -->' . 







							'<table class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">' . 







							'<!-- START MAIN CONTENT AREA -->' . 







							'<tr>' . 







								'<td class="wrapper" style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' . 







									'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







									'<tr>' . 







										'<td>' . 







											'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 20px 0;">Dear <strong>' . $first_name . ' ' . $last_name . '</strong>,</p>' . 







											'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">We have blocked a highly suspicious transaction from your account for <b>Amount</b> ' . $product_total . ' on ' . $formattedDate . '.</p>' . 







										'</td>' . 







									'</tr>' . 







									'<tr>' . 







										'<td>' . 







											'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Your order is currently mark as Cancelled, and we will get back to you shortly.</p>' . 







										'</td>' . 







									'</tr>';







									'<tr>' . 







										'<td>' . 







											'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Within the next few minutes, you would receive a follow-up email containing a secure link to initiate the password reset process. Please keep an eye on your inbox to set a new password.</p>' . 







										'</td>' . 







									'</tr>' . 







									'<tr>' . 







										'<td>' . 







											'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Regards,<br>' . $site_title . ' Team</p>' . 







										'</td>' . 







									'</tr>' . 







									'<tr>' . 







										'<td>' . 







											'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; Margin-bottom: 0px; color: #999999;">This email is sent from sensfrx.ai.</p>' . 







										'</td>' . 







									'</tr>' . 







									'</table>' . 







								'</td>' . 







							'</tr>' . 







							'<!-- END MAIN CONTENT AREA -->' . 







							'</table>' . 







							'<!-- START FOOTER -->' . 







							'<div class="footer" style="clear: both; Margin-top: 10px; text-align: center; width: 100%;">' . 







								'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







								'<tr>' . 







									'<td class="content-block powered-by" style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' . 







										'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">sensfrx.ai</a>.' . 







									'</td>' . 







								'</tr>' . 







								'</table>' . 







							'</div>' . 







							'<!-- END FOOTER -->' . 







						'<!-- END CENTERED WHITE CONTAINER -->' . 







						'</div>' . 







					'</td>' . 







					'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







				'</tr>' . 







				'</table>' . 







			'</body>' . 







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = wp_mail( $to, $subject, $body, $headers );







	}















	public static function profileUpdate_Medium($to, $first_name, $site_title, $device = array()) {







		$subject = 'Unusual Profile Update Activity Detected on this Account';







		$body = '<!doctype html>' . 







		'<html>' . 







			'<head>' . 







				'<meta name="viewport" content="width=device-width">' . 







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 







				'<title>' . $subject . '</title>' . 







			'</head>' . 







			'<body style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">' . 







				'<span style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' . 







				'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;">' . 







				'<tr>' . 







				'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







				'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' . 







				'<div style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px;">' . 







				'<table style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">' . 







				'<tr>' . 







				'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' . 







				'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







				'<tr>' . 







				'<td>' . 







				'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 20px 0;">Hi <strong>' . $first_name . '</strong>,</p>' . 







				'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">There is some unusual profile updation activity detected on this account. Did you recently use this device to perform some activity?</p>' . 







				'</td>' . 







				'</tr>' . 







				'<tr>' . 







				'<td>' . 







				'<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; border-collapse: collapse; margin-bottom: 15px;">' . 







				'<tr>' . 







				'<th style="border: 1px solid rgba(0, 0, 0, 1);">Device</th>' . 







				'<th style="border: 1px solid rgba(0, 0, 0, 1);">IP Address</th>' . 







				'<th style="border: 1px solid rgba(0, 0, 0, 1);">Location</th>' . 







				'</tr>' . 







				'<tr>' . 







				'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['name'] . '</td>' . 







				'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['ip'] . '</td>' . 







				'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['location'] . '</td>' . 







				'</tr>' . 







				'</table>' . 







				'</td>' . 







				'</tr>' . 







				'<tr>' . 







				'<td>' . 







				'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">' . 







				'<a href="' . site_url() . '?as_did_1337575=' . $device['device_id'] . '&asda_ac=1" style="display: inline-block; font-weight: 400; line-height: 1.5; color: #fff; text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; background-color: #0d6efd; border: 1px solid #0d6efd; padding: 4px 12px; font-size: 14px; border-radius: 0.25rem; margin-right: 10px;">This was me</a>' . 







				'<a href="' . site_url() . '?as_did_1337575=' . $device['device_id'] . '&asda_ac=0" style="display: inline-block; font-weight: 400; line-height: 1.5; color: #fff; text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; background-color: #bb2d3b; border: 1px solid #b02a37; padding: 4px 12px; font-size: 14px; border-radius: 0.25rem;">This was not me</a>' . 







				'</p>' . 







				'</td>' . 







				'</tr>' . 







				'<tr>' . 







				'<td>' . 







				'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">Regards,<br>' . $site_title . ' Team</p>' . 







				'</td>' . 







				'</tr>' . 







				'<tr>' . 







				'<td>' . 







				'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; margin-bottom: 0px; color: #999999;">This email is shot from sensfrx.ai.</p>' . 







				'</td>' . 







				'</tr>' . 







				'</table>' . 







				'</td>' . 







				'</tr>' . 







				'<tr>' . 







				'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







				'</tr>' . 







				'</table>' . 







				'<div style="clear: both; margin-top: 10px; text-align: center; width: 100%;">' . 







				'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







				'<tr>' . 







				'<td style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' . 







				'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">sensfrx.ai</a>.' . 







				'</td>' . 







				'</tr>' . 







				'</table>' . 







				'</div>' . 







			'</body>' . 







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = wp_mail( $to, $subject, $body, $headers );







	}















	public static function profileUpdate_Challenge($to, $first_name, $site_title, $lost_pass_url, $device = array()) {







		$subject = 'Suspicious Profile Update activity detected on this account';







		$body = '<!doctype html>' . 







		'<html>' . 







			'<head>' . 







				'<meta name="viewport" content="width=device-width">' . 







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 







				'<title>' . $subject . '</title>' . 







			'</head>' . 







			'<body style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">' . 







				'<span style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' . 







				'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;">' . 







				'<tr>' . 







				'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







				'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' . 







				'<div style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px;">' . 







				'<table style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">' . 







				'<tr>' . 







				'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' . 







				'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







				'<tr>' . 







				'<td>' . 







				'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 20px 0;">Hi <strong>' . $first_name . '</strong>,</p>' . 







				'</td>' . 







				'</tr>' . 







				'<tr>' . 







				'<td>' . 







				'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">Suspicious Profile Updation detected on the below device:</p>' . 







				'</td>' . 







				'</tr>' . 







				'<tr>' . 







				'<td>' . 







				'<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; border-collapse: collapse; margin-bottom: 15px;">' . 







				'<tr>' . 







				'<th style="border: 1px solid rgba(0, 0, 0, 1); text-align: center; font-size: 16px;">Device</th>' . 







				'<th style="border: 1px solid rgba(0, 0, 0, 1); text-align: center; font-size: 16px;">IP Address</th>' . 







				'<th style="border: 1px solid rgba(0, 0, 0, 1); text-align: center; font-size: 16px;">Location</th>' . 







				'</tr>' . 







				'<tr>' . 







				'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['name'] . '</td>' . 







				'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['ip'] . '</td>' . 







				'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['location'] . '</td>' . 







				'</tr>' . 







				'</table>' . 







				'</td>' . 







				'</tr>' . 







				'<tr>' . 







				'<td>' . 







				'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">We highly recommend to reset your password on this device if it was you. Click below to reset your password:</p>' . 







				'</td>' . 







				'</tr>' . 







				'<tr>' . 







				'<td>' . 







				'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;"><a href="' . $lost_pass_url . '" style="color: #1a73e8; text-decoration: underline;">' . $lost_pass_url . '</a></p>' . 







				'</td>' . 







				'</tr>' . 







				'<tr>' . 







				'<td>' . 







				'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">Regards,<br>' . $site_title . ' Team</p>' . 







				'</td>' . 







				'</tr>' . 







				'<tr>' . 







				'<td>' . 







				'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; margin-bottom: 0px; color: #999999;">This email is shot from sensfrx.ai.</p>' . 







				'</td>' . 







				'</tr>' . 







				'</table>' . 







				'</td>' . 







				'</tr>' . 







				'<tr>' . 







				'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







				'</tr>' . 







				'</table>' . 







				'<div style="clear: both; margin-top: 10px; text-align: center; width: 100%;">' . 







				'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







				'<tr>' . 







				'<td style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' . 







				'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">sensfrx.ai</a>.' . 







				'</td>' . 







				'</tr>' . 







				'</table>' . 







				'</div>' . 







				'</div>' . 







				'</td>' . 







				'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







				'</tr>' . 







				'</table>' . 







			'</body>' . 







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = wp_mail( $to, $subject, $body, $headers );







	}















	public static function profileUpdate_Deny($to, $first_name, $site_title, $device = array()) {







		$subject = 'High Suspicious Profile Update Prevent';







		$body = '<!doctype html>' . 







		'<html>' . 







			'<head>' . 







				'<meta name="viewport" content="width=device-width">' . 







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 







				'<title>' . $subject . '</title>' . 







			'</head>' . 







			'<body style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">' . 







				'<span style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' . 







				'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;">' . 







					'<tr>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; Margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' . 







							'<div style="box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;">' . 







								'<table style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">' . 







									'<tr>' . 







										'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' . 







											'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 20px 0;">Dear <strong>' . $first_name . '</strong>,</p>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">We have blocked a highly suspicious Profile Update Activity.</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">Within the next few minutes, you would receive a follow-up email containing a secure link to initiate the password reset process. Please keep an eye on your inbox to set a new password.</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">Regards,<br>' . $site_title . ' Team</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; margin-bottom: 0px; color: #999999;">This email is sent from sensfrx.ai.</p>' . 







													'</td>' . 







												'</tr>' . 







											'</table>' . 







										'</td>' . 







									'</tr>' . 







									'<div style="clear: both; margin-top: 10px; text-align: center; width: 100%;">' . 







										'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







											'<tr>' . 







												'<td style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' . 







													'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">sensfrx.ai</a>.' . 







												'</td>' . 







											'</tr>' . 







										'</table>' . 







									'</div>' . 







								'</table>' . 







							'</div>' . 







						'</td>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







					'</tr>' . 







				'</table>' . 







			'</body>' . 







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = wp_mail( $to, $subject, $body, $headers );







	}















	public static function webhook_Deny($to, $first_name, $last_name, $site_title) {







		$subject = 'Urgent: Highly Suspicious Activity Detected on Your Account - Webhook [ Real Time Action ]';







		$body = '<!doctype html>' . 







		'<html>' . 







			'<head>' . 







				'<meta name="viewport" content="width=device-width">' . 







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 







				'<title>' . $subject . '</title>' . 







			'</head>' . 







			'<body style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">' . 







				'<span class="preheader" style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' . 







				'<table border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;">' . 







					'<tr>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







						'<td class="container" style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; Margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' . 







							'<div class="content" style="box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;">' . 







								'<!-- START CENTERED WHITE CONTAINER -->' . 







								'<table class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">' . 







									'<!-- START MAIN CONTENT AREA -->' . 







									'<tr>' . 







										'<td class="wrapper" style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' . 







											'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 20px 0;">Dear <strong>' . $first_name . ' ' . $last_name . '</strong>,</p>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">We have blocked a highly suspicious activity from your account and log out the User.</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Within the next few minutes, you will receive a follow-up email containing a secure link to initiate the password reset process. Please keep an eye on your inbox to set a new password.</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Regards,<br>' . $site_title . ' Team</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; Margin-bottom: 0px; color: #999999;">This email is sent from sensfrx.ai.</p>' . 







													'</td>' . 







												'</tr>' . 







											'</table>' . 







										'</td>' . 







									'</tr>' . 







									'<!-- END MAIN CONTENT AREA -->' . 







								'</table>' . 







								'<!-- START FOOTER -->' . 







								'<div class="footer" style="clear: both; Margin-top: 10px; text-align: center; width: 100%;">' . 







									'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







										'<tr>' . 







											'<td class="content-block powered-by" style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' . 







												'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">sensfrx.ai</a>.' . 







											'</td>' . 







										'</tr>' . 







									'</table>' . 







								'</div>' . 







								'<!-- END FOOTER -->' . 







							'<!-- END CENTERED WHITE CONTAINER -->' . 







							'</div>' . 







						'</td>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







					'</tr>' . 







				'</table>' . 







			'</body>' . 







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = wp_mail( $to, $subject, $body, $headers );







	}















	public static function bot_Medium($to, $first_name, $last_name, $site_title, $device = array()) {







		$subject = 'Important: Recent Activity [ Bot Behaviour ] and Security Notification';







		$body = '<!doctype html>' . 







		'<html>' . 







			'<head>' . 







				'<meta name="viewport" content="width=device-width">' . 







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 







				'<title>' . $subject . '</title>' . 







			'</head>' . 







			'<body style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">' . 







				'<span style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' . 







				'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;">' . 







					'<tr>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; Margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' . 







							'<div style="box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;">' . 







								'<table style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">' . 







									'<tr>' . 







										'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' . 







											'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 20px 0;">Dear <strong>' . $first_name . ' ' . $last_name . '</strong>,</p>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">We wanted to bring to your attention a matter concerning a bot activity on your account. </p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">We have identified a successful bot activity from your account, that appeared to have some characteristics indicative of potential suspicious activity. </p>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">To ensure your account\'s security, we recommend taking prompt action. Consider changing your password and reviewing your account settings. </p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Regards,<br>' . $site_title . ' Team</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; Margin-bottom: 0px; color: #999999;">This email is sent from sensfrx.ai.</p>' . 







													'</td>' . 







												'</tr>' . 







											'</table>' . 







										'</td>' . 







									'</tr>' . 







								'</table>' . 







								'<div style="clear: both; Margin-top: 10px; text-align: center; width: 100%;">' . 







									'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







										'<tr>' . 







											'<td style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' . 







												'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">sensfrx.ai</a>.' . 







											'</td>' . 







										'</tr>' . 







									'</table>' . 







								'</div>' . 







							'</div>' . 







						'</td>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







					'</tr>' . 







				'</table>' . 







			'</body>' . 







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = wp_mail( $to, $subject, $body, $headers );







	}















	public static function bot_Challenge($to, $first_name, $last_name, $site_title, $device = array()) {







		$subject = 'Important: Suspicious Bot Activity Detected on Your Account';







		$body = '<!doctype html>' . 







		'<html>' . 







			'<head>' . 







				'<meta name="viewport" content="width=device-width">' . 







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 







				'<title>' . $subject . '</title>' . 







			'</head>' . 







			'<body style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">' . 







				'<span class="preheader" style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' . 







				'<table border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;">' . 







					'<tr>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







						'<td class="container" style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; Margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' . 







							'<div class="content" style="box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;">' . 







								'<table class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">' . 







									'<tr>' . 







										'<td class="wrapper" style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' . 







											'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 20px 0;">Dear <strong>' . $first_name . ' ' . $last_name . '</strong>,</p>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">We wanted to bring a matter to your immediate attention regarding a recent bot activity from your account.</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">We have identified a successful bot activity from your account.</p>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">Click below to let us know if this was you or not. If not, we advise changing your password immediately to protect your account.</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; border-collapse: collapse; margin-bottom: 15px;">' . 







															'<tr>' . 







																'<th style="border: 1px solid rgba(0, 0, 0, 1);">Device</th>' . 







																'<th style="border: 1px solid rgba(0, 0, 0, 1);">IP Address</th>' . 







																'<th style="border: 1px solid rgba(0, 0, 0, 1);">Location</th>' . 







															'</tr>' . 







															'<tr>' . 







																'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['name'] . '</td>' . 







																'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['ip'] . '</td>' . 







																'<td style="border: 1px solid rgba(0, 0, 0, 1); text-align: center;">' . $device['location'] . '</td>' . 







															'</tr>' . 







														'</table>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;"><a href="' . site_url() . '?as_did_1337575=' . $device['device_id'] . '&asda_ac=1" style="display: inline-block;font-weight: 400;line-height: 1.5;color: #fff;text-align: center;text-decoration: none;vertical-align: middle;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;user-select: none;background-color: #0d6efd;border: 1px solid #0d6efd;padding: 4px 12px;font-size: 14px;border-radius: 0.25rem; margin-right: 10px;">This was me</a><a href="' . site_url() . '?as_did_1337575=' . $device['device_id'] . '&asda_ac=0" style="display: inline-block;font-weight: 400;line-height: 1.5;color: #fff;text-align: center;text-decoration: none;vertical-align: middle;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;user-select: none;background-color: #bb2d3b;border: 1px solid #b02a37;padding: 4px 12px;font-size: 14px;border-radius: 0.25rem;">This was not me</a></p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;">Regards,<br>' . $site_title . ' Team</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; margin-bottom: 0px; color: #999999;">This email is shot from sensfrx.ai.</p>' . 







													'</td>' . 







												'</tr>' . 







											'</table>' . 







										'</td>' . 







									'</tr>' . 







								'</table>' . 







								'<div class="footer" style="clear: both; margin-top: 10px; text-align: center; width: 100%;">' . 







									'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







										'<tr>' . 







											'<td class="content-block powered-by" style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' . 







												'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">sensfrx.ai</a>.' . 







											'</td>' . 







										'</tr>' . 







									'</table>' . 







								'</div>' . 







							'</div>' . 







						'</td>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







					'</tr>' . 







				'</table>' . 







			'</body>' . 







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = wp_mail( $to, $subject, $body, $headers );







	}















	public static function bot_Deny($to, $first_name, $last_name, $site_title, $device = array()) {







		$subject = 'Urgent: Highly Suspicious Bot Activity Detected on Your Account';







		$body = '<!doctype html>' . 







		'<html>' . 







			'<head>' . 







				'<meta name="viewport" content="width=device-width">' . 







				'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . 







				'<title>' . $subject . '</title>' . 







			'</head>' . 







			'<body style="background-color: #f6f6f6; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">' . 







				'<span class="preheader" style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">This is preheader text. Some clients will show this text as a preview.</span>' . 







				'<table border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f6f6f6;">' . 







					'<tr>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







						'<td class="container" style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; Margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">' . 







							'<div class="content" style="box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;">' . 







								'<!-- START CENTERED WHITE CONTAINER -->' . 







								'<table class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">' . 







									'<!-- START MAIN CONTENT AREA -->' . 







									'<tr>' . 







										'<td class="wrapper" style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">' . 







											'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 20px 0;">Dear <strong>' . $first_name . ' ' . $last_name . '</strong>,</p>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">We have blocked a highly suspicious bot activity from your account.</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Within the next few minutes, you will receive a follow-up email containing a secure link to initiate the password reset process. Please keep an eye on your inbox to set a new password.</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">Regards,<br>' . $site_title . ' Team</p>' . 







													'</td>' . 







												'</tr>' . 







												'<tr>' . 







													'<td>' . 







														'<p style="font-family: sans-serif; font-size: 10px; font-weight: normal; margin: 0; Margin-bottom: 0px; color: #999999;">This email is sent from sensfrx.ai.</p>' . 







													'</td>' . 







												'</tr>' . 







											'</table>' . 







										'</td>' . 







									'</tr>' . 







									'<!-- END MAIN CONTENT AREA -->' . 







								'</table>' . 







								'<!-- START FOOTER -->' . 







								'<div class="footer" style="clear: both; Margin-top: 10px; text-align: center; width: 100%;">' . 







									'<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">' . 







										'<tr>' . 







											'<td class="content-block powered-by" style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; font-size: 12px; color: #999999; text-align: center;">' . 







												'Powered by <a href="http://sensfrx.ai" style="color: #999999; font-size: 12px; text-align: center; text-decoration: none;">sensfrx.ai</a>.' . 







											'</td>' . 







										'</tr>' . 







									'</table>' . 







								'</div>' . 







								'<!-- END FOOTER -->' . 







							'<!-- END CENTERED WHITE CONTAINER -->' . 







							'</div>' . 







						'</td>' . 







						'<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;">&nbsp;</td>' . 







					'</tr>' . 







				'</table>' . 







			'</body>' . 







		'</html>';







		$headers = array('Content-Type: text/html; charset=UTF-8');







		$mailResult = wp_mail( $to, $subject, $body, $headers );







	}















}