Skip to content
Snippets Groups Projects
Commit 8ac87fc0 authored by Thomas Hackl's avatar Thomas Hackl
Browse files

Resolve "HTML-Mails: Headerbild wird nicht ausgegeben"

Closes #4961

Merge request studip/studip!3727
parent a28baf35
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,15 @@ class StudipMail
public static function sendMessage($recipient, $subject, $text, $html = null)
{
$mail = new StudipMail();
// 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'
);
return $mail->setSubject($subject)
->addRecipient($recipient)
->setBodyText($text)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment