RendertoRTItem lost font format in mail forward

I need to do a task by forwarding an existing mail to a number of internet mail addresses (there is a requirement that this mail has to be forwarded by me, so I cannot just use send method in lotus script.

therefore I need to use RendertoRTItem to dump the mail to a document and then send it away. However, it seems a bit different from the Forward method in lotus script, the font format is lost, all becomes plain text.

For RendertoRTItem method, the body field is MIME of “Content-type: text/plain; charset=US-ASCII”

While for forward method, the body field is MIME of “Content-Type: multipart/alternative; boundary=”=alternative 002D2BE44825740F="

How can I achieve the multipart format as in Forward method?

Subject: RendertoRTItem lost font format in mail forward

First, the RenderToRTItem only works with rich text items, not MIME items, although Notes will automatically convert the MIME to rich text for you. I just want to be clear that there will be loss involved in the conversion. Second, the key problem is found not in the second MIME heading, but the first. It is of type “text/plain”, which means “plain text” (oh, those tricky people). So, by the time it is rendered, it is plain text. That may be due to the first issue or not, but you will have to deal with it to solve your problem. Have you considered using the MIME classes and preserving the original MIME and working with that. You would need to use the NotesSession.ConvertMime set to False, just as a starter.

Subject: RE: RendertoRTItem lost font format in mail forward

May be I elaborate more.

Actually I have tried to save a mail into 2 files, one using the Forward button and one using the method of RenderToRTItem, both of them will generate a body of Rich Text Type.

However, when we issue send, the receiver will receive the mail, for the one created using Forward button, some fonts are preserved but for the one created using RenderToItem will simply all plain text.

I send the mail back to my Notes client and I discover that they are MIME type, one with multipart (Forward button) and the other with simply plain text MIME. That is what I described on my first post.

In fact I can’t simply use Forward method since it is UI type, I just wanna know how I can dump the mail into a new one for forwarding on the backend.

Subject: RE: RendertoRTItem lost font format in mail forward

The difference is not between what the server does with Forward and RenderToRTItem, but that one is a UI action (and uses your client settings) and the other is a back-end action. If you were to bring the RenderToRTItem version into the UI and send it manually, it would be sent as multipart as well. The problem lies with the server MIME conversion configuration – it is set to “convert to plain text” as default, and you need it to be set to “convert to HTML and plain text”.

Subject: RE: RendertoRTItem lost font format in mail forward

You are right, there is a difference between sending mail using UI and backend action.

But the receiver still get full plain text mail even I set the outbound MIME conversion options from “convert to plain text” to “convert to HTML and plain text”.

cannot resolve?