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 May 8, 2024 via composer

swiftmailer/swiftmailer 4.1.3

Swiftmailer, free feature-rich PHP mailer
Package summary
Share
9
issues
2
critical severity
vulnerability
2
4
high severity
vulnerability
2
license
1
meta
1
2
moderate severity
vulnerability
2
1
low severity
license
1
1
license
1
LGPL
Package created
29 Sep 2011
Version published
27 Oct 2011
Maintainers
1
Total deps
1
Direct deps
0
License
LGPL

Issues

9

2 critical severity issues

critical
via: swiftmailer/swiftmailer@4.1.3
via: swiftmailer/swiftmailer@4.1.3
Collapse
Expand

4 high severity issues

high
via: swiftmailer/swiftmailer@4.1.3
via: swiftmailer/swiftmailer@4.1.3
Recommendation: Validate that the package complies with your license policy
via: swiftmailer/swiftmailer@4.1.3
via: swiftmailer/swiftmailer@4.1.3
Collapse
Expand

2 moderate severity issues

moderate
via: swiftmailer/swiftmailer@4.1.3
via: swiftmailer/swiftmailer@4.1.3
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: swiftmailer/swiftmailer@4.1.3
Collapse
Expand

Licenses

LGPL

Invalid
Not OSI Approved
1 Packages, Including:
swiftmailer/swiftmailer@4.1.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

0
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

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.