I have a macro that will run and save reports and then e mail a user. I need this mail to be sent to more than one user but can't figure out the syntax...
I currently have:
Set objNotesSession = CreateObject("Notes.NotesSession" strMailServer = "mailserver"
strMailFile = "mail\username.nsf"
Set objNotesDB = objNotesSession.GetDatabase(strMailServer,strMailFile)
Set objDoc = objNotesDB.CreateDocument()
strNotesBody = "Hello, the reports have run" strNotesSubject = "Your eP reports have run"
objDoc.subject = strNotesSubject
objDoc.body = strNotesBody
Set objRichText = objDoc.CreateRichTextItem("NewBody"
objDoc.SendTo = "anyone@anywhere.co.uk"
Call objDoc.Send(False)
Set objNotesSession = Nothing
Set objNotesDB = Nothing
Set objDoc = Nothing
Set objRichText = Nothing
Set objAttach = Nothing
End Sub
I basically need to know how to add more names after objDoc.SendTo =
Any ideas?
I currently have:
Set objNotesSession = CreateObject("Notes.NotesSession" strMailServer = "mailserver"
strMailFile = "mail\username.nsf"
Set objNotesDB = objNotesSession.GetDatabase(strMailServer,strMailFile)
Set objDoc = objNotesDB.CreateDocument()
strNotesBody = "Hello, the reports have run" strNotesSubject = "Your eP reports have run"
objDoc.subject = strNotesSubject
objDoc.body = strNotesBody
Set objRichText = objDoc.CreateRichTextItem("NewBody"
objDoc.SendTo = "anyone@anywhere.co.uk"
Call objDoc.Send(False)
Set objNotesSession = Nothing
Set objNotesDB = Nothing
Set objDoc = Nothing
Set objRichText = Nothing
Set objAttach = Nothing
End Sub
I basically need to know how to add more names after objDoc.SendTo =
Any ideas?