For future reference:

In my ongoing SMTP adventuring, I have learned that a MIME boundary string specification does NOT include any prepended or appended double-dashes ("--"). Those need to be added for specific uses.

In particular, if you issue:

'Content-Type: multipart/mixed; boundary="--MyCoolBoundaryString"'

instead of:

'Content-Type: multipart/mixed; boundary="MyCoolBoundaryString"'

you will get "MIME error: error: unexpected end of preamble", your segment-defining text will appear in the email message body, and your attachments will not be decoded.

This is the kind of stuff that is not explained in clear language in SMTP reference documents, which is why this particular little piece of arcana cost me 6 hours that I'll never get back.

Ken Dibble
www.stic-cil.org


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to