Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
;This is a sample script using GroupWise API and WinBatch(2002f) OLE commands, for sending a new message from GroupWise 6.x or later. Subject="Test 3" ;Subject of Message Body=" This is a Test" ;Body of Message GWApp = CreateObject("NovellGroupWareSession") ;Opens GroupWise API Session GWRootAccount = GWApp.Login("", "") ;May need to have GroupWise or Notify running, or insert user name and password in high security environment MailApplication = GWRootAccount.Cabinet.Messages.Add("GW.MESSAGE.MAIL") For m= 1 To 1;Set to 4 to send to 4 users ;For adding multiple recipients ToList1="User1" ToList2="User2" ToList3="User3" ToList4="User4" MailApplication.Recipients.Add (ToList%m%) Next ;for attachment, un-rem these next two lines. ;Attach="C:\Sample.txt" ;MailApplication.Attachments.Add (Attach) MailApplication.Subject = Subject MailApplication.Bodytext = Body MailApplication.Send ;Send Message Exit
Article ID: W17196
File Created: 2007:07:03:14:28:42
Last Updated: 2007:07:03:14:28:42