halloverden / symfony-mailer-email-whitelist
EnvelopeListener for symfony mailer that enables whitelisting of emails
Installs: 27 480
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 1
Open Issues: 0
Requires
- php: >=8.1
- symfony/mailer: ^5.4|^6.1
README
EnvelopeListener for symfony mailer that enables whitelisting of emails
Install
composer require halloverden/symfony-mailer-email-whitelist
Usage
services: mailer.staging.set_recipients: class: HalloVerden\EmailWhitelist\EventListener\WhitelistEnvelopeListener tags: ['kernel.event_subscriber'] arguments: $sender: '%env(EMAIL_FROM_ADDRESS)%' $recipients: '%env(json:EMAIL_DELIVERY_ADDRESSES)%' $deliveryWhitelist: '%env(json:EMAIL_DELIVERY_WHITELIST)%'