Problem/Motivation

Currently, this module allows to add CSS via a static symfony_mailer_lite library declared in the theme used when sending e-mail. In some contexts, it is handy to dynamically add CSS when calling MailManager::mail() from code.

Proposed resolution

If CSS is passed via the css key in MailManager::mail() parameters, aggregate it with static CSS before inlining.

Remaining tasks

Review patch.

User interface changes

None.

API changes

Developers will be able to add some CSS in the css parameter when calling MailManager::mail().

Data model changes

None.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

FMB created an issue. See original summary.

fmb’s picture

Status: Active » Needs review
fmb’s picture

While this feature is being reviewed, the following patch can be applied: https://git.drupalcode.org/project/symfony_mailer_lite/-/merge_requests/...

zengenuity made their first commit to this issue’s fork.

  • zengenuity committed 81af2dcd on 1.0.x authored by FMB
    Issue #3417823 by FMB: Allow to dynamically add CSS
    
zengenuity’s picture

Status: Needs review » Fixed

This looks good. I've committed it. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.