Fix add_attachment function
This commit is contained in:
parent
481c8498dd
commit
a2f3a45451
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue