ZF-3646: Automaticly add attachments for included images
Description
Most common email clients do not show embeded images, unless the user allow that Therefore there should be some functionality which automaticly send embeded images as email attachments with correct headers. I believe this is worth to implement.
Programmer just passes $mail->setBodyHTML() and something like $mail->sendEmbededImagesAsAttachment() and all will be automaticly included in email as attachments with correct headers
working example with source code inside attachment
Comments
Posted by Michal Vrchota (techi) on 2008-07-14T16:37:15.000+0000
Zend_Mime_Part with content-location header ability
Posted by Michal Vrchota (techi) on 2008-07-14T16:38:07.000+0000
Example how to automaticly load attachments for embeded images in email
Posted by Michal Vrchota (techi) on 2008-07-14T16:38:58.000+0000
This feature requires Content-Location header
Posted by Nico Edtinger (nico) on 2008-11-07T17:14:33.000+0000
That sounds like too much magic for Zend_Mail. It's already possible to parse the html body and fetching the mails before creating the mail message. And normally you'd use the content-id with a cid: URL. If we leave that out of Zend_Mail you also have to possibility to use data: URIs, or inline stylesheets or javascript - adding all this possibilities to Zend_Mail makes it just bloated.
Posted by Benjamin Eberlei (beberlei) on 2009-01-16T09:43:06.000+0000
This is an extension that should reside in userland code, not in Zend_Mail itself.
Posted by Michal Vrchota (techi) on 2009-01-16T11:20:14.000+0000
You have conviced me :) I agree this feature will really bloat the code little bit.
Posted by Benjamin Eberlei (beberlei) on 2009-01-16T11:29:17.000+0000
issue is only resolved not closed.