Rich Text and MIME in Body field for e-mail

Does anyone know or have code samples that can add MIME to an existing Rich Text field… ie he Body of my e-mail has rich text and I would like to append to it MIME content.

Any pointers or help would be appreciated.

Subject: Rich Text and MIME in Body field for e-mail

I did what you suggested and got it to work… however it messed up teh formatting and got rid of the button that was in the original Rich Text Field (Body) … I must be missing something else… do you happen to have a code sample/example showing where an existing Body/Rich text field has MIME being appended to it and retaining the fidelity/formatting .

Subject: RE: Rich Text and MIME in Body field for e-mail

Can you post the actual code which you are using converting RichText to MIME format.Thanks

Subject: Rich Text and MIME in Body field for e-mail

You can’t simply add MIME content. You would need to convert the rich text to MIME first, then add the MIME content, or convert the MIME to rich text, then add that.

Subject: RE: Rich Text and MIME in Body field for e-mail

Ben - thanks… can you post an example of converting Rich to MIME?? ie which MIME class do I need to use and what directive

Subject: RE: Rich Text and MIME in Body field for e-mail

There are no classes to do it. There are a few different methods, depending on the quality of HTML you want and the difficulty you are willing to accept. The simplest free method is to create a rich text field with the field settings changed to Save As MIME/HTML, then save the document and extract the MIME that way. You can also use the GetDocumentByURL method to convert the rich text to HTML and then use the NotesMIMEEntity class to save it as a MIME part.

If you need something a bit higher quality and easier to use, and if you have even a small budget to work with, our Midas Rich Text LSX will generate MIME for you.

Subject: Rich Text and MIME in Body field for e-mail

Sorry to be dense… but I don’t think that will work… ie the existing Body(Rich Text) has formatting and also contains a Button. To that I want to append/add HTML, ie

and have the MTML actually rendered correctly when the e-mail get’s sent as opposed to vied the HTML as text which it currently does.

Subject: RE: Rich Text and MIME in Body field for e-mail

The problem is that you can’t add HTML the way you suggest. You need to convert to HTML (MIME) and then add your HTML to the end of the generated HTML. You can use the suggestions I made in the other response in this thread . Rich text isn’t HTML, so adding HTML to rich text isn’t much use to you.