Skip to content

Allow per-channel configuration of email sender and specification of sender when sending email #22

@rimas-kudelis

Description

@rimas-kudelis

Describe the proposed solution
Currently Sylius Mailer bundle allows configuring email sender via yaml (sylius_mailer.sender.{name,address}). This applies globally to all channels and is not overridable though, so even if you use different branding and/or support email addresses in different channels, there is no easy way to configure this.

My proposal is to add the necessary properties to the channel entity and use channel context to resolve their values at runtime. Also, I think it would be great if the send() method of \Sylius\Component\Mailer\Sender class allowed (optionally) specifying email sender at runtime via optional arguments.

Note: it appears there are plans to deprecate SyliusMailerBundle altogether in favor of Symfony Mailer. In that case, it would be just great if the points above were taken into consideration during the refactoring process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions