Jump to content


Photo

I got some help from the forum? no really! the forum!


  • Please log in to reply
3 replies to this topic

#1 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 15 September 2006 - 02:09 PM

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!

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 15 September 2006 - 02:19 PM

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.
Legend has it that reading the manual never killed anyone.
My site

#3 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 15 September 2006 - 02:24 PM

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

#4 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,017 posts

Posted 17 September 2006 - 07:53 AM

160 is what you get from & nbsp; (a non-breaking space)
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users