swiftmailer
Comprehensive mailing tools for PHP
An archived PHP library for sending email from web applications, now end-of-life since November 2021, the same team's Symfony Mailer is the officially recommended replacement for new and existing projects.
Swift Mailer is a PHP library for sending email from web applications. It handles the mechanics of composing messages, connecting to mail servers, and delivering email, giving developers a structured way to send mail rather than using PHP's basic built-in mail function.
The library is no longer maintained. The README states plainly that support ended in November 2021 and that users should move to Symfony Mailer, which the same team developed as a replacement. Symfony Mailer covers the same use cases and adds support for modern PHP features and third-party email service providers.
Beyond noting its end-of-life status and pointing to the replacement, the README does not go into detail about features or usage. The full documentation was hosted externally. The library is released under the MIT license.
Where it fits
- Migrate a legacy PHP project that uses Swift Mailer to Symfony Mailer using the migration guide
- Reference the original API design to understand how to port email-sending code to a modern library