diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index b2fee1c4..4998c0e8 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -10,6 +10,7 @@ Changelog
- Fix #465: Extra right scrollbar
- Enh #466: Convert swagger docs to OpenAPI 3.0
- Fix #469: In mail notifications, use core button for "Reply now", to allow auto-contrast
+- Fix #470: Email inline style from Sass variables, e.g. when overwriting `$mail-font-family` in the Custom SCSS field
3.3.5 (September 30, 2025)
--------------------------
diff --git a/module.json b/module.json
index 8348ed19..538c7547 100644
--- a/module.json
+++ b/module.json
@@ -10,7 +10,7 @@
],
"version": "3.3.6",
"humhub": {
- "minVersion": "1.18"
+ "minVersion": "1.18-beta.6"
},
"homepage": "https://github.com/humhub/mail",
"authors": [
diff --git a/views/emails/NewMessage.php b/views/emails/NewMessage.php
index 277d714c..9b5231ab 100644
--- a/views/emails/NewMessage.php
+++ b/views/emails/NewMessage.php
@@ -4,7 +4,7 @@
use humhub\modules\mail\helpers\Url;
use humhub\modules\mail\models\Message;
use humhub\modules\mail\models\MessageEntry;
-use humhub\modules\ui\mail\DefaultMailStyle;
+use humhub\helpers\MailStyleHelper;
use humhub\modules\user\models\User;
use humhub\widgets\mails\MailButton;
use humhub\widgets\mails\MailButtonList;
@@ -24,14 +24,14 @@
-
+
-
+
@@ -43,9 +43,9 @@
- |
+ |
-
+
= $headline ?>
|
@@ -81,13 +81,13 @@
+ style="background-color: = MailStyleHelper::getBackgroundColorMain() ?>; border-radius: 0 0 4px 4px">
+ style="background-color: = MailStyleHelper::getBackgroundColorMain() ?>">
@@ -130,11 +130,11 @@
align="left">
- |
+ |
- = $subHeadline ?>
+ = $subHeadline ?>
- | | | |