PHP - Inline images not displayed in Thunderbird -
i want send mail trough php inline/embedded images (aka cid). mail succesfully sended , received correctly in gmail. however, in thunderbird (latest version windows) inline/embedded image not displayed.
i followed information given in this thread still doesn't work. inline/embedded image displayed in gmail not in thunderbird. knows problem here?
to: example@example.com subject: test from: noreply@test.com <noreply> mime-version: 1.0 content-type: multipart/related; boundary="52cd9ebf4fb8c9b0547e93b82b3f3f6b" --52cd9ebf4fb8c9b0547e93b82b3f3f6b content-type: text/html; charset=iso-8859-1 content-transfer-encoding: 8bit <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>test mail</title> </head> <body> <img src="cid:myimage" alt="this embedded image" /> </body> </html> --52cd9ebf4fb8c9b0547e93b82b3f3f6b content-type: image/jpg; name="myimage.jpg" content-transfer-encoding: base64 content-id: <myimage> content-disposition: inline; filename="myimage.jpg" [base64 encoded string goes here.] --52cd9ebf4fb8c9b0547e93b82b3f3f6b--
mm... in rfc 1521 format of content-type header this
the formal grammar content-type header field text as
follows:text-type := "text" "/" text-subtype [";" "charset" "=" charset]
text-subtype := "plain" / extension-token
charset := "us-ascii"/ "iso-8859-1"/ "iso-8859-2"/ "iso-8859-3" / "iso-8859-4"/ "iso-8859-5"/ "iso-8859-6"/ "iso-8859-7" / "iso-8859-8" / "iso-8859-9" / extension-token ; case insensitive
i mean content-type , next charset put
content-type: image/jpg; name="myimage.jpg"
so... maybe can break image... suggestion put content-id in lowercase not camel case
regards emiliano
Comments
Post a Comment