Fix add_attachment function
This commit is contained in:
parent
481c8498dd
commit
a2f3a45451
|
@ -22,7 +22,7 @@ class Mail {
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_attachment($content, $filename=null, $cid=null) {
|
function add_attachment($content, $filename=null, $cid=null) {
|
||||||
$this->mailer->addStringEmbeddedImage($content, $cid, $filename);
|
$this->mailer->addStringEmbeddedImage($content, $cid ? : bin2hex(random_bytes(10)), $filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_attachments($attachments) {
|
function add_attachments($attachments) {
|
||||||
|
|
Loading…
Reference in a new issue