Archived Forum Post

Index of archived forum posts

Question:

Add blank line before MIME boundary

Jul 03 '12 at 16:09

Hello, The third party receipient of my MIME message requests that I have a blank line after the soap envelope and before the attachment boundary. My output is coming out like this:

....
      </soapenv:Body>
    </soapenv:Envelope>
    --9293256B-A776-489E-BF23-E8C7D8CC5339
    Content-Disposition: attachment;
         filename="v1sampleexcelattachment.xlsx"
....

How can I achieve this?

Many thanks, Glenn


Answer

Ok. Silly question. I just appended a CrLf to the end of the soap part after I converted it to a string, before I passed it to the Mime component.


Answer

I would need to see a snippet of code that shows how you are building the MIME to make a suggestion...