Thanks for the reply. Re: casting, I was assuming it worked like java. Well, the java I remember playing with like 10+ years ago. I may be 'misremembering' but I thought to cast a variable in java, you something like "var x(field type) = <something>. I just thought maybe it worked like that.
But I did finally figured out how to do what I've been trying to do. It's about grabbing the content of a RT field and prefixing and postfixing some text that then becomes an email. Turns out it's pretty simple, actually. Here's what I did:
"Issue" is the RTI and stDocument is a NotesXspDocument.
var replyContent = stDocument.getItemValueString("Issue");
var rtiIssueField = maildoc.createRichTextItem("body");
rtiIssueField.appendText("**IMPORTANT: blah... **");
rtiIssueField.appendText("\n<LWST>");
rtiIssueField.appendText("\n"+replyContent);
rtiIssueField.appendText("\n</LWST>")
maildoc.send();
There's an issue with the MIME conversion. But hopefully I can figure that out.
clem