Grin with cat attached (wechsler) wrote,
Grin with cat attached

  • Mood:
  • Music:

Today's Problem

consists of trying to write PHP code to produce a multipart-MIME email newsletter with both HTML and plaintext parts, the images for the HTML being also included in the email, rather than downloaded by http on delivery.

I can get the email to take, the HTML/txt alternative block, I can base64 encode the image, and I can get them all to appear in the delivered email, which seems happy to display txt or HTML as appropriate.

But trying to load an img tag with a cid: src is just beyond me. Is the Content-ID supposed to be globally unique or summat?

Update. Ah! multipart/mixed != multipart/related. D'oh.
  • Post a new comment


    Comments allowed for friends only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded