Skip to content
Snippets Groups Projects
Commit 81af2dcd authored by Felip Manyer i Ballester's avatar Felip Manyer i Ballester Committed by Wayne Eaker
Browse files

Issue #3417823 by FMB: Allow to dynamically add CSS

parent 507ce3c9
Branches
Tags
1 merge request!11Allow to dynamically add CSS
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment