Thank you guys, but I have to explain a little bit more...
I am collecting a subset of strings into a new string. With "filewrite" I put this final string into a file for testing. If I have a look into this file (I can do this on the mobile or when transferred to a windows-pc, the formatting remains intact (using notepad, editor, word). Everything ok.
But putting the content of this final string directly into the body of a simple email to make it directly visible when opening the email (sending with the phonelibrary) destroys all of the formatting.
Sure, I could put it as an attachment to the email, but I have to use fileprovider for doing this. This is a little bit over the top for such small content. When walking to the bakery on the corner for getting fresh bread, you are not dressing up yourself with a tuxedo before doing this...
It is only a small piece of formatted text...
So the question is better defined as: "How to put the assembled substring 1:1 without any changes to an email". This is probably a problem with transferring the content to the used mailing program. And this happens with other email-programs too.
Converted to HTML (with ms-word for testing), the filesize increases up to 500%. This makes 400% overhead (!!!) I have to program additionally into the text...
BBCode could solve this, but I am not sure if I can put the content of several variables during runtime into the file with BBCode. Could work if the BBCode-text gets interpreted as HTML and if the final recipients email-program can handle HTML directly...
Things could be so easy...