PHP component for creating and sending emails over SMTP or third-party email services
open sourceMITfree
Symfony Mailer is the Symfony project's PHP component for creating and sending emails, usable on its own or inside a Symfony app. It delivers over SMTP, the local sendmail binary or third-party transports such as Amazon SES, Mailgun, Postmark, SendGrid and Resend, and supports multipart messages, attachments, Twig templates with CSS inlining, failover and round-robin transports, and sending asynchronously through Symfony Messenger.
Problems it solves
- send email from a PHP app over SMTP
- switch my PHP app's email provider without rewriting the sending code
- send templated HTML emails from PHP with a fallback provider if one goes down
Features
- SMTP and sendmail transports configured by a DSN
- third-party transports including Amazon SES, Mailgun, Postmark, SendGrid, Brevo and Resend
- failover and round-robin transports for high availability
- Twig templates with CSS inlining
- file attachments and multipart messages
- asynchronous sending through Symfony Messenger
Alternatives
The same job
These do what Symfony Mailer does.
- PHPMailer Full-featured email creation and sending library for PHP, with a built-in SMTP client
