Allow to dynamically add CSS

Created on 29 January 2024, about 1 year ago
Updated 22 February 2024, about 1 year ago

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.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇷France fmb Perpinyà, Catalonia, EU

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024