Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Does anyone have any examples of how to do the same thing in Notes 6.5? I'm having a hard time locating any reference on what objects do what in Notes.
Here is some code based on some VBS code I found at google:
Session = ObjectOpen("Notes.NotesSession") db = Session.GetDatabase("", "") If db.IsOpen == @False db.OpenMail EndIf doc = db.CreateDocument doc.Form = "Memo" doc.sendto = "Recipient" doc.subject = "subject" doc.Body = "BodyText" doc.SaveMessageOnSend = 1 doc.Send (1) ObjectClose(doc) ObjectClose(db) ObjectClose(Session) exitReferenced:
See Also: http://www.visualbasicforum.com/t67545.html
fname = "C:\Test.xls" Session = ObjectOpen("Notes.NotesSession") db = Session.GetDatabase("", "") If db.IsOpen == @False db.OpenMail EndIf doc = db.CreateDocument doc.Form = "Memo" doc.sendto = "Steve Romine" doc.subject = "Test Stuff" doc.Body = "This is the BodyText" doc.SaveMessageOnSend = 1 ;attach the Excel file attachsheet = doc.createrichtextitem(fname) embedobj = attachsheet.embedobject(1454, "", fname, fname) doc.Send (0) ObjectClose(embedobj) ObjectClose(attachsheet) ObjectClose(doc) ObjectClose(db) ObjectClose(Session) exit
http://www.ibm.com/developerworks/lotus/library/ls-Using_OLE_in_Notes/
Article ID: W16072
File Created: 2008:04:15:09:15:44
Last Updated: 2008:04:15:09:15:44