REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.04 KB
Close
/var/softaculous/sitepad/editor/site-data/plugins/gosmtp-pro/main/notifications/email.php
Text
Base64
<?php namespace GOSMTP\Notifications; use GOSMTP\Notifications\Manager; class Email extends Manager{ var $title = 'Email'; var $service = 'email'; public function send($message){ global $phpmailer; $to_email = $this->get_option('email', $this->service); if(empty($to_email)) return false; $from_email = !empty($phpmailer->From) ? $phpmailer->From : get_option('admin_email'); $subject = site_url().': GoSMTP Email Error'; $headers = "From: GoSMTP Alerts <$from_email>\r\n"; $headers .= "Content-Type: text/plain; charset=UTF-8\r\n"; $message = html_entity_decode($message, ENT_QUOTES, 'UTF-8'); return mail($to_email, $subject, $message, $headers); } public function load_services_field(){ $fields = [ 'email' => [ 'title' => __('Email Address', 'gosmtp-pro'), 'type' => 'email', 'desc' => sprintf(__('Enter your Email Address.%1$s%2$sFollow this link for guide.%3$s', 'gosmtp-pro'),'<br>', '<a href="https://gosmtp.net/docs/notifications/email" target="_blank">','</a>') ] ]; 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).