Jump to content

Recommended Posts

I'm sure many of you guys will agree that writing a detailed description of a problem will often present the solution.

Problem: I was trying to create a multipart-alternative email using PHP. The entire email message appears to be correctly formatted, but mail applications would receive an empty message with an attached file called mime-attachment. I've been hacking on this for months without any results.

When pasting the full test email into the forum, the preview feature revealed that there was a weird character   being used in place of a few spaces. I overwrote the spaces and presto -- we have working multipart-alternitive email!

Thank you forum preview!
The headers and boundaries are coded inside PHP. While exploring the possible problems with the multipart email, I copied and pasted the content-type header and boundaries from a working HTML multipart email. Ha, I guess that's what I get for borrowing bytes from untrusted sources  ;D
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.