Subject: Creating Memo in Lotus Script
is this something like you were thinking about?
Set maildoc = New NotesDocument(db)
Dim mailrt As NotesRichTextItem
if you want to format the text:
set richStyle = session.CreateRichTextStyle
richStyle.NotesFont = FONT_HELV
richStyle.FontSize = 8
richStyle.Bold = False
—creates the new document
Set maildoc = New NotesDocument(db)
maildoc.Form = “Memo”
maildoc.Principal = nameinthefromfield
maildoc.Subject = “blah blah” & doc.somefield
if you want to add some text
Set mailrt = New NotesRichTextItem(maildoc, “Body”)
Call mailrt.AppendStyle(richStyle)
Call mailrt.AppendText(“<<>>”)
Call mailrt.AddNewline(2)
Call mailrt.AppendText(“Greetings;”)
Call mailrt.AddNewline(1)
Call mailrt.AppendText(“Please click the link below to access the request.”)
If you want some field data:
Call mailrt.AddNewline(2)
Call mailrt.AppendText("Name: ")
Call mailrt.AppendText(doc.namefield(0))
Call mailrt.AddNewline(1)
etc. etc…
If you want a doclink:
Call mailrt.AppendText("Link to something: ")
Call mailrt.AppendDocLink(doc2, “link text”)
Call mailrt.AddNewline(1)
send it
Call maildoc.Send(False, sendto)
(obviously I left off a few declarations like session and db etc…)
HTH