Mail document with form

HiDoes anyone have some sample code using Lotusscript to mail a document with the form. Have tried a few examples but with no luck. I need to call the value of the send to field from another document.

Many thanks.

Coll

Subject: Try this

Dim mailDoc As NotesDocument Set mailDoc = db.CreateDocument

Dim rtItem As New NotesRichTextItem( mailDoc, "body" )



mailDoc.Form = "Memo"

mailDoc.Subject ="Test"

mailDoc.SendTo  = "test@test.de"

mailDoc.Principal = "Ali Nasiri"

Call rtitem.AddNewLine(2)

Call mailDoc.Send( False )

Subject: Mail document with form

“I need to call the value of the send to field from another document.”

What does that mean? You want to access the value of the sendto item sometime after the document has been mailed? That’s no problem, and nothing to do with storing the form in the document. Can you elaborate?

Subject: RE: Mail document with form

HiWhat happens it, I compose a quote from a form with subforms that inherit values from another document which stores the value of the send to field…not sure if that made any sense.

Subject: Sorry; I still don’t follow you. Try again?