Core Symfony Mailer powered WordPress plugin for the SymPress kernel.
Install the package through Composer in a SymPress WordPress project:
composer require sympress/mailerThe SymPress kernel discovers the SymPress\Mailer\MailerBundle bundle from
composer.json and loads mailer/mailer.php as the WordPress plugin entry.
- Replaces
wp_mail()through the WordPresspre_wp_mailfilter. - Uses
symfony/mailertransports and DSNs, including SMTP, sendmail, native mail, failover DSNs and optional Symfony provider bridges. - Supports one primary connection, From email/name policy, return-path handling, TLS settings and test email delivery.
- Stores settings in the shared
sympress_mailer_settingsoption so extension packages can add their own feature state. - Exposes
SymPress\Mailer\Application\MailerInterfaceandSymPress\Mailer\Message\EmailBodyProcessorInterfaceas extension points.
sympress/mailer-pro lives in packages/mailer-pro and builds on this package like a premium extension. The Pro package replaces MailerInterface with a logging/routing/queue-aware implementation and replaces the body processor with open/click tracking.
The core package depends on symfony/mailer and accepts any valid Symfony Mailer DSN. Dedicated providers such as SendGrid, Mailgun, Postmark, Brevo, Amazon SES, Gmail, Microsoft Graph, Mailjet, MailerSend, Mailtrap and Resend are enabled by installing the matching Symfony bridge listed in composer.json suggestions.
Admin assets are built with Symfony Webpack Encore:
npm install
npm run buildThe PHP asset provider loads assets/entrypoints.json when it exists and falls back to the legacy assets/admin.css and assets/admin.js files until a build is available.
composer test
composer cs:analyze
composer cs