Skip to content

Commit 34d74c7

Browse files
authored
Merge pull request #4798 from mmfarhan/develop
It will fix undefined index cid error when sending emails with embedded images
2 parents c8e0708 + 5dc5d8f commit 34d74c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Email/Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ public function setAttachmentCID($filename)
722722

723723
$this->attachments[$i]['cid'] = uniqid(basename($attachment['name'][0]) . '@', true);
724724

725-
return $attachment['cid'];
725+
return $this->attachments[$i]['cid'];
726726
}
727727
}
728728

0 commit comments

Comments
 (0)