aboutsummaryrefslogtreecommitdiff
path: root/lib/messaging.inc.php
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2024-04-17 14:21:55 +0000
committerThomas Hackl <hackl@data-quest.de>2024-04-17 14:21:55 +0000
commite0d83e5e63f1ce728923b77409e68635fdeb6cf8 (patch)
tree114fba2406d73aa2549af03afd55c419659f0178 /lib/messaging.inc.php
parent95b8d817b5337c234a50a3d4dfb202f5a40ef8af (diff)
Resolve "Darstellung der neuen HTML-Mails für möglichst viele Clients"
Closes #4027 Merge request studip/studip!2879
Diffstat (limited to 'lib/messaging.inc.php')
-rw-r--r--lib/messaging.inc.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/messaging.inc.php b/lib/messaging.inc.php
index 0fb7c3f..8df15ba 100644
--- a/lib/messaging.inc.php
+++ b/lib/messaging.inc.php
@@ -229,6 +229,15 @@ class messaging
$mail->setSubject($title)
->addRecipient($to, $rec_fullname)
->setBodyText($mailmessage);
+
+ // Add Stud.IP logo as "pseudo" attachment - this will be embedded in the mail via Content-ID.
+ $mail->addRelatedAttachment(
+ $GLOBALS['STUDIP_BASE_PATH'] . '/public/assets/images/logos/studip4-logo@2x.png',
+ 'studip-logo.png',
+ 'image/png',
+ 'studiplogo'
+ );
+
if (mb_strlen($reply_to)) {
if ($GLOBALS['MESSAGING_FORWARD_USE_REPLYTO']) {
$mail->setReplyToEmail($reply_to)