OLE Automate E-Mail/Notes Message
Posted on 2003-02-25
I have some VB style code that needs to send an E-Mail to someone once a job is finnished. I found some code which looks like so:
Sub DeliverEmail ( )
Dim session as new NotesSession
if memo is nothing then
set memo = session.createDocument
memo.replaceItemValue "Form" , "Memo"
memo.replaceItemValue "Subject" , "E-Mail Notice"
memo.replaceItemValue "Body" , "Your reports are ready!"
memo.replaceItemValue "SendTo" , "email@example.com"
This simply doesnt work :( I get "NotesSession is not a record type"
Could someone give me a simple example of a Sub to send a 1 line E-Mail message ??