Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 24, 2024 via composer

symfony/mime v7.0.0

Allows manipulating MIME messages
Package summary
Share
0
issues
1
license
5
MIT
Package created
17 Jan 2019
Version published
19 Oct 2023
Maintainers
1
Total deps
5
Direct deps
2
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
5 Packages, Including:
symfony/mime@v7.0.0
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
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

2
All Dependencies CSV
β“˜ This is a list of symfony/mime 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
symfony/polyfill-intl-idnv1.29.059.29 kBMIT
prod
symfony/polyfill-mbstringv1.29.0-MIT
prod

Visualizations

Frequently Asked Questions

What does symfony/mime do?

Symfony/Mime is a composer package that offers the ability to manipulate MIME messages. With Symfony/Mime, you can create and manipulate internet messages that conform to the Multipurpose Internet Mail Extensions (MIME) standard. This primarily involves the creation, encoding, and decoding of multipart messages, emails, and attachments.

How do you use symfony/mime?

Utilizing Symfony/Mime in your PHP environment is quite straightforward. Below is an example of how you could use it to create an email with an HTML body:

use Symfony\Component\Mime\Email;

$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>');

After creating an email, you can send it with the Mailer component:

use Symfony\Component\Mailer\Mailer;
use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport;

$transport = new EsmtpTransport('localhost');
$mailer = new Mailer($transport);
$mailer->send($email);

Remember to install the MIME component via composer using the command composer require symfony/mime before attempting to use it.

Where are the symfony/mime docs?

The complete and detailed documentation for the Symfony/Mime package is available on the Symfony official website: Symfony Mime Documentation. This includes further usage examples, detailed function descriptions, and additional resources for contributing to the Symfony project.