Email Class: Fix typo that effects embedded base64 image attachments.
This commit is contained in:
@@ -569,7 +569,7 @@ if (!class_exists('email')) {
|
|||||||
else {
|
else {
|
||||||
if ($attachment['base64']) {
|
if ($attachment['base64']) {
|
||||||
if ($attachment['cid']) {
|
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 {
|
else {
|
||||||
$mail->AddStringAttachment(base64_decode($attachment['base64']), $attachment['name'], 'base64', $attachment['mime_type']);
|
$mail->AddStringAttachment(base64_decode($attachment['base64']), $attachment['name'], 'base64', $attachment['mime_type']);
|
||||||
|
|||||||
Reference in New Issue
Block a user