Fix add_attachment function

This commit is contained in:
Kumi 2020-09-05 21:41:04 +02:00
parent 481c8498dd
commit a2f3a45451

View file

@ -22,7 +22,7 @@ class Mail {
}
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) {