Issue Feature Closed

#80420Allow multiple recipients in EmailFinisher

Mathias Brodala 03/23/17, 15:10 updated 07/23/19, 11:24

Description

The EmailFinisher should support more than one recipient. ATM only one can be set through its recipientAddress and recipientName options whereas TYPO3’s MailMessage does allow for an arbitrary amount of recipients.

One option would be a general recipients option which could look like this:

finishers:
  - identifier: EmailToReceiver
    options:
      recipients:
        - foo@example.org
        - bar@example.org

(Thus a list of strings)

An alternative format could be used to specify recipient names:

finishers:
  - identifier: EmailToReceiver
    options:
      recipients:
        foo@example.org: Foo
        bar@example.org: Bar

(Thus a list of arrays)

Theoretically this could also be mixed:

finishers:
  - identifier: EmailToReceiver
    options:
      recipients:
        - foo@example.org
        - bar@example.org: Bar

(Thus a list of strings or arrays)

Reviews 1