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
This package has been abandoned. Use symfony/mailer instead.
Generated on Apr 29, 2024 via composer

swiftmailer/swiftmailer v6.3.0

Swiftmailer, free feature-rich PHP mailer
Package summary
Share
1
issue
1
high severity
meta
1
1
license
9
MIT
Package created
29 Sep 2011
Version published
18 Oct 2021
Maintainers
1
Total deps
9
Direct deps
4
License
MIT

Issues

1

1 high severity issue

high
via: swiftmailer/swiftmailer@v6.3.0
Collapse
Expand

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
9 Packages, Including:
doctrine/deprecations@1.1.3
doctrine/lexer@2.1.1
egulias/email-validator@3.2.6
swiftmailer/swiftmailer@v6.3.0
symfony/polyfill-iconv@v1.29.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

4
All Dependencies CSV
β“˜ This is a list of swiftmailer/swiftmailer 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
egulias/email-validator3.2.6-MIT
prod
symfony/polyfill-iconvv1.29.0454.44 kBMIT
prod
symfony/polyfill-intl-idnv1.29.059.29 kBMIT
prod
symfony/polyfill-mbstringv1.29.0-MIT
prod

Visualizations

Frequently Asked Questions

What does swiftmailer/swiftmailer do?

Swiftmailer is a comprehensive and feature-rich PHP mailer, designed to be highly object-oriented, making it ideal for use in complex web applications where flexibility is critical. It is a component-based mailing solution that encompasses robust mailing functions. However, as of the end of November 2021, the maintenance for Swiftmailer is discontinued and it is recommended to shift to Symfony Mailer. Symfony Mailer, like Swiftmailer, offers high adaptability for modern PHP code and bolsters third-party provider support.

How do you use swiftmailer/swiftmailer?

To utilize Swiftmailer in your PHP projects, you must first install it. Swiftmailer can be easily installed via Composer. Here's a basic example of sending an email using Swiftmailer:

// Make sure to require the Composer autoload file
require_once 'vendor/autoload.php';

// Create the Transport
$transport = (new Swift_SmtpTransport('smtp.example.com', 25))
  ->setUsername('your username')
  ->setPassword('your password');

// Create the Mailer using your created Transport
$mailer = new Swift_Mailer($transport);

// The message creation
$message = Swift_Message::newInstance()
  ->setSubject('Hello')
  ->setFrom(array('john@doe.com' => 'John Doe'))
  ->setTo(array('receiver@domain.org', 'other@domain.org' => 'A name'))
  ->setBody('Here is the message itself');

// Send the message
$result = $mailer->send($message);

This code will connect to an SMTP server, form an email with a subject, from/to addresses, and a body text, and then send the email.

Where are the swiftmailer/swiftmailer docs?

Detailed documentation on Swiftmailer usage can be found on the official Swiftmailer website at https://swiftmailer.symfony.com/docs/introduction.html. The documentation provides comprehensive insights into the functionalities, integrations, and complex use-cases of the mailer.