Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 543 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 543 Bytes

symfony-mailer-email-whitelist

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)%'