403Webshell
Server IP : 198.38.94.67  /  Your IP : 216.73.217.142
Web Server : LiteSpeed
System : Linux d6054.dxb1.stableserver.net 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
User : azfilmst ( 1070)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/softaculous/sitepad/editor/site-data/plugins/gosmtp-pro/main/notifications/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/softaculous/sitepad/editor/site-data/plugins/gosmtp-pro/main/notifications/sender.php
<?php

if(!defined('ABSPATH')){
	die('HACKING ATTEMPT');
}

function gosmtp_pro_check_failure_and_notify($is_sent, $exception, $backup_sent){
	global $gosmtp;

	if($is_sent){
		return;
	}

	$active_service_key = isset($gosmtp->options['notifications']['notification_service']) ? $gosmtp->options['notifications']['notification_service'] : '';
	$enabled = !empty($gosmtp->options['notifications']['notifications_enabled']);

	if(empty($active_service_key) || empty($enabled)){
		return;
	}

	$all_services = gosmtp_pro_load_notifications_service_list();

	if(isset($all_services[$active_service_key])){
		$service = $all_services[$active_service_key];

		// Load the specific saved options for this service (Slack URL, Email, etc.)
		if(method_exists($service, 'load_options')){
			$service->load_options();
		}

		$error_message = $exception ? $exception->getMessage() : 'Unknown Error';

		$message = "GoSMTP Alert: Email Delivery Failed.\n\n";
		$message .= "Your website failed to send an email.\n\n";
		$message .= "Domain: ".site_url()."\n";
		$message .= "Error Details: " . $error_message;

		if(method_exists($service, 'send')){
			$service->send($message);
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit