Email Class: Fix typo that effects embedded base64 image attachments.

This commit is contained in:
fusionate 2023-04-20 01:33:22 +00:00
parent f5f6b33676
commit 18225f82f2
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -569,7 +569,7 @@ if (!class_exists('email')) {
else {
if ($attachment['base64']) {
if ($attachment['cid']) {
$email->addStringEmbeddedImage(base64_decode($attachment['base64']), $attachment['cid'], $attachment['name'], 'base64', $attachment['mime_type']);
$mail->addStringEmbeddedImage(base64_decode($attachment['base64']), $attachment['cid'], $attachment['name'], 'base64', $attachment['mime_type']);
}
else {
$mail->AddStringAttachment(base64_decode($attachment['base64']), $attachment['name'], 'base64', $attachment['mime_type']);