PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in /home/telusvwg/public_html/da754d/index.php on line 8
$#$#$#

Dir : /var/softaculous/sitepad/editor/site-data/plugins/gosmtp-pro/main/notifications/
Server: Linux premium279.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
IP: 66.29.132.192
Choose File :

Url:
Dir : //var/softaculous/sitepad/editor/site-data/plugins/gosmtp-pro/main/notifications/webhook.php

<?php

namespace GOSMTP\Notifications;

use GOSMTP\Notifications\Manager;

class Webhook extends Manager{

	var $title = 'Webhook';
	var $service = 'webhook';

	public function send($message){

		$webhook_url = $this->get_option('webhook_url', $this->service);

		if(empty($webhook_url)){
			return false;
		};

		$message = html_entity_decode($message, ENT_QUOTES, 'UTF-8');

		$body = [
			'content' => $message
		];

		$headers = [
			'content-type' => 'application/json'
		];

		return wp_remote_post($webhook_url,[
			'body' => json_encode($body),
			'headers' => $headers
		]);
	}

	public function load_services_field(){

		$fields = [
			'webhook_url' => [
				'title' => __('Webhook URL', 'gosmtp-pro'),
				'type' => 'password',
				'desc' => __('Enter your Webhook URL', 'gosmtp-pro')
			]
		];

		return $fields;
	}
}