Skip to content

Flexible E-Mail-Template-Types? #21

Open
@wilfriedwolf

Description

@wilfriedwolf

Hi there,

I just had a project, where I needed to add different Identities to Invoice and Creditmemo Mails, so having two different types of invoice and creditmemo emails. This worked out nicely.
Unfortunately these new Mail-Type-Variants would not allow the same attachment behaviour as the standard mails, since they would use another template config path.

I could solve my problem by overriding the \Fooman\EmailAttachments\Model\EmailIdentifier but since here lots of stuff is private this leads to a serious copy and paste problem.

So my idea was to switch the hardcoded stuff to a DI driven one. If you think that would be a nice idea, I could just prepare a Pull request..

What do you think.

Best regards,

Willi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions