Skip to content

delivery-whitelist config option does not behave as documented. #5790

Closed
@msteltenpool

Description

@msteltenpool

http://symfony.com/doc/current/reference/configuration/swiftmailer.html#delivery-whitelist

"If set, emails matching any of these patterns will be delivered like normal, instead of being sent to delivery_address."

This is not true, the class Swift_Plugins_RedirectingPlugin sends it to both the white listed recipient address as well as the delivery_address.

You can see that behavior in the previous mentioned class, after it adds the white listed address as recipient, it also adds the default recipient (delivery_address)l.

foreach ((array) $this->_recipient as $recipient) {
    if (!array_key_exists($recipient, $to)) {
        $message->addTo($recipient);
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionableClear and specific issues ready for anyone to take them.hasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions