Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
symfony_mailer_lite
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
symfony_mailer_lite
Commits
81af2dcd
Commit
81af2dcd
authored
1 year ago
by
Felip Manyer i Ballester
Committed by
Wayne Eaker
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3417823
by FMB: Allow to dynamically add CSS
parent
507ce3c9
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!11
Allow to dynamically add CSS
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/Mail/SymfonyMailer.php
+5
-0
5 additions, 0 deletions
src/Plugin/Mail/SymfonyMailer.php
with
5 additions
and
0 deletions
src/Plugin/Mail/SymfonyMailer.php
+
5
−
0
View file @
81af2dcd
...
...
@@ -653,6 +653,11 @@ class SymfonyMailer implements MailInterface, ContainerFactoryPluginInterface {
}
}
// Let modules add CSS when calling MailManager::mail().
if
(
!
empty
(
$message
[
'params'
][
'css'
])
&&
is_string
(
$message
[
'params'
][
'css'
]))
{
$css
.
=
$message
[
'params'
][
'css'
];
}
if
(
$css
)
{
$message
[
'body'
]
=
$this
->
cssInliner
->
convert
(
$message
[
'body'
],
$css
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment