File manager - Edit - /home/xfekoga/grenier/wp-content/plugins/fluent-smtp/app/Services/Mailer/Providers/Simulator/Handler.php
Back
<?php namespace FluentMail\App\Services\Mailer\Providers\Simulator; use FluentMail\App\Models\Logger; use FluentMail\App\Services\Mailer\BaseHandler; class Handler extends BaseHandler { public function send() { if($this->shouldBeLogged(true)) { $atts = $this->setAttributes(); $customHeaders = $atts['custom_headers']; $headers = $atts['headers']; foreach ($customHeaders as $customHeader) { $headers[$customHeader['key']] = $customHeader['value']; } $logData = [ 'to' => maybe_serialize($this->setRecipientsArray($this->phpMailer->getToAddresses())), 'from' => maybe_serialize($this->phpMailer->From), 'subject' => $this->phpMailer->Subject, 'body' => $this->phpMailer->Body, 'attachments' => maybe_serialize($this->phpMailer->getAttachments()), 'status' => 'sent', 'response' => maybe_serialize(['status' => __('Email sending was simulated, No Email was sent originally', 'fluent-smtp')]), 'headers' => maybe_serialize($this->phpMailer->getCustomHeaders()), 'extra' => maybe_serialize(['provider' => 'Simulator']) ]; (new Logger)->add($logData); } return true; } protected function postSend() { $returnResponse = [ 'response' => 'OK' ]; $this->response = $returnResponse; return $this->handleResponse($this->response); } public function setSettings($settings) { $this->settings = $settings; return $this; } }
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings