Welcome Guest, Not a member yet? Register   Sign In
CI3 inline images in email using buffer string
#1

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()?
Reply


Messages In This Thread
CI3 inline images in email using buffer string - by ludis - 02-10-2021, 09:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB