michaellunsford Posted September 15, 2006 Share Posted September 15, 2006 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! Quote Link to comment https://forums.phpfreaks.com/topic/20864-i-got-some-help-from-the-forum-no-really-the-forum/ Share on other sites More sharing options...
AndyB Posted September 15, 2006 Share Posted September 15, 2006 160 is the ASCII space character with high bit set .... might well have been something from a WYSIWYG editor being too smart for its own good. Quote Link to comment https://forums.phpfreaks.com/topic/20864-i-got-some-help-from-the-forum-no-really-the-forum/#findComment-92420 Share on other sites More sharing options...
michaellunsford Posted September 15, 2006 Author Share Posted September 15, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/20864-i-got-some-help-from-the-forum-no-really-the-forum/#findComment-92421 Share on other sites More sharing options...
Barand Posted September 17, 2006 Share Posted September 17, 2006 160 is what you get from & nbsp; (a non-breaking space) Quote Link to comment https://forums.phpfreaks.com/topic/20864-i-got-some-help-from-the-forum-no-really-the-forum/#findComment-93415 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.