Answer the question
In order to leave comments, you need to log in
What is the algorithm for generating Content-Type: boundary?
What is the algorithm for generating the boundary parameter when creating MIME emails, specifically with inline attachments?
Given: Outlook 14.
Content-Type: multipart/related;
boundary="----=_NextPart_000_0074_01D17EA2.0CF612B0"
This is a multipart message in MIME format.
------=_NextPart_000_0074_01D17EA2.0CF612B0
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_0075_01D17EA2.0CF612B0"
------=_NextPart_001_0075_01D17EA2.0CF612B0
Content-Type: text/plain;
charset="UTF-8"
Content-Transfer-Encoding: base64
....
Answer the question
In order to leave comments, you need to log in
There is no single algorithm, each application uses its own algorithm, and even a boundary consisting of a single character will work. The only requirement is the uniqueness of the boundary within one letter. If you see "This is a multipart message in MIME format" then the boundary simply does not match, do not forget that --boundary is used as a part separator and --boundary-- at the end (there are two additional minuses at the beginning and at the end) .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question