#6358: EmailComponent needs to set Content-ID header for attachments, for embedded images to render ----------------------------+----------------------------------------------- Reporter: rkaiser0324 | Owner: Type: Bug | Status: new Priority: Low | Milestone: 1.2.x.x Component: Components | Version: 1.2 Final Severity: Minor | Resolution: Keywords: | Php_version: n/a Cake_version: 1.2.1.8004 | ----------------------------+----------------------------------------------- Comment (by jaime):
True, but adding the "Content-ID" to the header of each image attached is not the only thing that needs to be fixed in order to be able to embed images in email. It is also needed to: 1.- Change the email Content-type from "multipart/mixed" to "multipart/related; type="multipart/alternative"". 2.- The "Content-Type" of each attached image must be set to reflect its MIME Type, not "application/octet-stream'. 3.- Remove the "Content-Disposition: attachment;" line. 4.- Add a "Content-Location: image001.gif' (or whatever filename) line. -- Ticket URL: <https://trac.cakephp.org/ticket/6358#comment:1> CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/> Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tickets cakephp" group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~----------~----~----~----~------~----~------~--~---