[FEATURE] Add attachment option to mailutility

This commit is contained in:
Philipp Dieter 2021-11-14 19:02:51 +01:00
parent cf387b1af7
commit 4a1ae9a7a2

View File

@ -280,6 +280,13 @@ class MailUtility
$bodydataText[] = $textRow;
$bodydataHtml[] = $htmlRow;
break;
case 'attachment':
$mail->attach(new \Swift_Attachment(
$row['data'][0],
$row['data'][1],
$row['data'][2]
));
break;
case 'attachmentBase64':
$attachmentdata = explode(',', $row['data']);
preg_match('/\w*:(.*);\w*/', $attachmentdata[0], $matches);