04 MIDAS CLASSES/GeniiRTItem

SaveAsMIME method
Version added: 2.30
Saves the text of the rich text field as MIME.  If it is HTML, set the context type to text/html and the message can be sent as formatted HTML.   If the context is plain text, set the context type to text/plain and it will be sent as a plain text MIME message.  If the content is rich text, but should be converted to HTML and saved as multi-part MIME, use the  ConvertToMime method instead.
Defined in
GeniiRTItem class
Syntax
Call  geniiRTItem .SaveAsMIME( fieldname$ headers$ 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.
headers$
String.   Can be left blank, which indicates that the content string   "Content-Transfer-Encoding: 7bit\nContent-Type: text/html; charset='us-ascii'\n\n" will be used. If specified, it should follow this basic format. 
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)

Example