Mail by Lotus script

Hi,

I want to send details of a field in a form through mail via lotus script.Please Suggest.

(New to domino designing

)

Subject: Send Mail via Script

Take a look through the previous Notes/Domino forms (or here) there should be lots of examples. You can also do this via @formula language and maybe easier if you’re new to Lotus script.

Do a search for “mailDoc.Send” or “Doc.Send” or “=“Memo”” as outlined below

This is off the top of my head, so it’s going ot have typos as my client is busy doing something and my memory isn’ that great.


Dim session as New NotesSession

Dim db as NotesDatabase

dim mailDoc as Notesdocument

dim curDoc as NotesDocument

dim body as NotesRichTextItem

Set db = session.currentdatabase

set curDoc - session.currentdoc

Set mailDoc = New Notesdocument(db)

With mailDoc

.Form = “Memo”

.SendTo = “Name of Person/DIV/Company”

End With

(always have to look next line up)

Set Body = maildoc.RichTextItem(“Body”)

Call body.AppendText( curDoc.FieldName(0) )

Call mailDoc.Send()

Subject: Answer: see next subject thread for an example.