Good day,
I have a hard time adding a buffer string as inline image in an HTML email.
Code:
$this->email->attach( $bin, 'inline', $filename, 'image/png' )
The command
Code:
$this->email->attachment_cid( $filename )
returns FALSE.
I looked into the Email library, function attachment_cid() and it turns out that buffered images have two filenames. The first one is gibberish, the second one is the actual filename. But the function checks only the first name and because that one's different from the chosen filename the function thinks there's no attachment of that name and returns FALSE.
Is this a bug in the function attachment_cid()?