Plugin
Live
Flightmail
Stack:
Version: 1.1.0
License: MIT
PHP
Send email from your Flight PHP app without the headaches.
FlightMail is a small plugin that wraps Symfony Mailer – the most battle-tested mail library in PHP – and makes it feel like part of Flight. One line to install, one fluent chain to send:
Flight::mail()->compose()
->to('[email protected]')
->subject('You did it!')
->text('Your first email is on its way.')
->send();phpWhy you’ll like it:
- Any provider, one line each. SMTP, Postmark, Sendgrid, Mailgun, Amazon SES, Brevo and friends all work through simple DSN strings.
- Use several providers at once. Transactional mail through Postmark, newsletters through your own SMTP – pick per message.
- Templates if you want them. Render bodies with Twig or Latte. Don’t want templates? Just pass strings and install nothing extra.
- Email-safe styling, optionally automatic. Inline CSS into your HTML so Gmail doesn’t strip it – one Composer package away.
- Both parts, half the work. Let FlightMail generate the plain-text part from your HTML (Markdown quality), instead of writing it twice.
- Boring in the best way. Lazy connections, clear errors instead of silently swallowed mail, and everything is swappable if you need something custom.