halloverden/symfony-mailer-email-whitelist

EnvelopeListener for symfony mailer that enables whitelisting of emails

1.0.0 2020-09-25 12:55 UTC

This package is auto-updated.

Last update: 2021-12-07 09:37:15 UTC


README

EnvelopeListener for symfony mailer that enables whitelisting of emails

Install

composer require halloverden/symfony-mailer-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)%'