symfony/amazon-mailer
Symfony Mailer transport for Amazon SES. Configure SES via DSNs for SMTP, HTTPS, or API with region, optional session token, and port-based TLS behavior (implicit TLS or STARTTLS with optional require_tls override).
eu-west-1) without self-hosting infrastructure.SwiftMailer integrations or microservices).For Executives: "Switching to AWS SES via this package could cut email costs by 60–70%—saving $5K/year for 1M monthly emails. It’s a drop-in replacement for our current provider with zero risk: we’ll pilot in SES Sandbox before full migration. AWS handles scaling, and we retain control over deliverability via DKIM/SPF. This aligns with our cloud-first strategy and reduces vendor lock-in."
For Engineering: *"This package lets us integrate AWS SES in hours, not weeks. Key benefits:
ses+smtp, ses+https, or ses+api based on security/latency needs.Laravel Integration Example:
// app/Services/AmazonMailerService.php
use Symfony\Component\Mailer\MailerInterface;
use Symfony\Component\Mailer\Transport\AmazonMailerTransport;
class AmazonMailerService {
public function __construct(private MailerInterface $mailer) {}
public function sendWelcomeEmail(string $email, string $name) {
$this->mailer->send((new Email())
->to($email)
->subject('Welcome!')
->html("<h1>Hi $name!</h1>")
);
}
}
Configuration (.env):
MAIL_MAILER=amazon
MAIL_HOST=ses+smtp://AKIAEXAMPLE:SECRET@default?region=eu-west-1
Key Asks:
config/mail.php (or .env for Laravel).Risk Mitigation:
For Product/Compliance Teams:
"SES supports regional endpoints (e.g., eu-west-1) for GDPR compliance and SNS event notifications for bounce handling. We can also use SES templates for pre-approved marketing emails, reducing review cycles."
How can I help you explore Laravel packages today?