I spent much time on sending an email with embed images and some attachments
like pdf-files. I think with version 1.6.2 it is not possible. If i'm wrong,
please let me know.
It is possible to send an email with html-code with embed images. First you
create an image with Zend_Mime_Part. Then you give your object an id
($PartGif->id = "123456789";). In your html-code you set the SRC of the
image to "cid:123456789". This works for every mail-client.
But if you try to add a PDF-Attachment too. It is not possible. Your E-Mail
Client gets only trash. If you confirm with me or not, please post your
opinion.
To solve this problem, it is necessary to mixed several MIME-PART with
different boundarys. But this is not possible with ZEND. The message has to
look like this:
Content-Type: multipart/mixed; boundary="=_1"
--=_1
Content-Type: multipart/alternative; boundary="=_2"
--=_2
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="ISO-8859-1"
message plain text
--=_2
Content-Type: multipart/related; boundary="=_3"
--=_3
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="ISO-8859-1"
message html text
--=_3
Content-Transfer-Encoding: base64
embed image
--=_3--
--=_2--
--=_1
Content-Transfer-Encoding: base64
PDF-File
--=_1--
--
View this message in context:
http://www.nabble.com/Not-possible%3A-Zend_Mail-with-embed-images-and-attachment-tp20359353p20359353.html
Sent from the Zend Framework mailing list archive at Nabble.com.