Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 19, 2024 via composer

symfony/mailer v4.4.18

Symfony Mailer Component
Package summary
Share
0
issues
1
license
15
MIT
Package created
30 Mar 2019
Version published
18 Dec 2020
Maintainers
1
Total deps
15
Direct deps
5
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
15 Packages, Including:
doctrine/lexer@1.2.3
egulias/email-validator@2.1.25
psr/container@1.1.2
psr/log@1.1.4
symfony/deprecation-contracts@v3.4.0
symfony/event-dispatcher@v4.4.44
symfony/event-dispatcher-contracts@v1.10.0
symfony/mailer@v4.4.18
symfony/mime@v5.4.38
symfony/polyfill-intl-idn@v1.29.0
symfony/polyfill-intl-normalizer@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php72@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/service-contracts@v2.5.3
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

5
All Dependencies CSV
β“˜ This is a list of symfony/mailer 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
egulias/email-validator2.1.25-MIT
prod dev
psr/log1.1.410.7 kBMIT
prod dev
symfony/event-dispatcherv4.4.44-MIT
prod
symfony/mimev5.4.38-MIT
prod
symfony/service-contractsv2.5.3-MIT
prod dev

Visualizations

Frequently Asked Questions

What does symfony/mailer do?

Symfony/Mailer is a powerful email solution for PHP that simplifies email handling. This Mailer component aims to make sending emails easier and more efficient. It helps build clean, re-usable and testable emails, while handling the low-level infrastructure parts for you.

How do you use symfony/mailer?

To use Symfony/Mailer, first, you need to install it via Composer using the command $ composer require symfony/mailer. Once installed, you can use it in your application.

Here is an example of creating a new email and sending it:

use Symfony\Component\Mailer\Transport;
use Symfony\Component\Mailer\Mailer;
use Symfony\Component\Mime\Email;

$transport = Transport::fromDsn('smtp://localhost');
$mailer = new Mailer($transport);

$email = (new Email())
    ->from('hello@example.com')
    ->to('you@example.com')
    ->subject('Time for Symfony Mailer!')
    ->text('Sending emails is fun again!')
    ->html('<p>See Twig integration for better HTML integration!</p>');

$mailer->send($email);

In this example, an SMTP server is used as a transport layer to actually send the emails. The Mailer object is then initiated to work with this transport layer. An email object is created with sender, recipient, subject, text and HTML content. Finally, this email is sent through the Mailer.

If you want to use Twig integration you need to install symfony/twig-bridge, after that, you can use it in the way that's presented in the readme.

Where are the symfony/mailer docs?

Symfony/Mailer's documentation can be found on the Symfony website. You can access it by visiting the Symfony Mailer Documentation. You will find there more in-depth information about the usage, configuration and extensive capabilities of the Symfony/Mailer component.