04 MIDAS CLASSES/GeniiRTItem

ConvertToMime method
Version added: 2.40
Converts the rich text in the field to HTML (using logic similar to the  GenerateHTML method in the  GeniiRTChunk class ) and saves the converted HTML to a multi-part MIME field.  Images can be saved as separate MIME parts, as can Text and HTML portions.   If the content of the rich text field is already HTML or plain text to be sent as plain text, use the  SaveAsMIME method instead.
Defined in
GeniiRTItem class
Syntax
Call  geniiRTItem .ConvertToMime( fieldname$ HTML_headers$ text_headers$ MIME_properties$ HTML_properties$ )
Parameter
fieldname$
String.   The fieldname to which the mime should be saved.  If this field exists, and especially if it is the current field, this method will fail unless the property pair  Overwrite=Yes is specified in the properties string.
HTML_headers$
String.   Can be left blank, which indicates that the content string   "Content-Transfer-Encoding: 7bit\nContent-Type: text/html; charset='us-ascii'" will be used. If specified, it should follow this basic format. 
text_headers$
String.   Can be left blank, which indicates that the content string   "Content-Transfer-Encoding: 7bit\nContent-Type: text/plain; charset='us-ascii'" will be used. If specified, it should follow this basic format. 
MIME_properties$
String.   If specified, these are the property pairs for saving as MIME. The current poperty pairs allowed are:
Overwrite=YES,NO (defaults to NO)
MimeTrack=string (value for the $MimeTrack field, which shows on delivery as the itemizer of the MIME.  Defaults to "Itemized by Midas Rich Text LSX Version x.xx" where x.xx is current Midas version)
NewLineOnParagraph=YES,NO (defaults to NO.  Set to YES if you want the HTML to be more readable when inspected directly)
HTML_properties$
String.   If specified, these are the property pairs for HTML conversion.   See the  GenerateHTML method and the  Working with HTML generation topic for details.

Example