REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 826 B
Close
/var/softaculous/sitepad/editor/site-data/plugins/gosmtp-pro/main/notifications/webhook.php
Text
Base64
<?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 = [ 'text' => $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; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 7
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
discord.php
980 B
lrw-r--r--
2026-04-22 07:17:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
email.php
1.04 KB
lrw-r--r--
2026-04-22 07:17:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
manager.php
1.18 KB
lrw-r--r--
2026-04-22 07:17:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
pushover.php
1.19 KB
lrw-r--r--
2026-04-22 07:17:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
sender.php
1.15 KB
lrw-r--r--
2026-04-22 07:17:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
slack.php
988 B
lrw-r--r--
2026-04-22 07:17:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
webhook.php
826 B
lrw-r--r--
2026-04-22 07:17:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).