Originally posted by : neil (noteam@hotmail.com)Is it possible to send e-mails with WSH? I have a group of people who need to be notified by e-mail that there are reports available for them to download from a server, and I wanted to use WSH to do so. Any Help?THanks,Neil
Originally posted by : Chris (chrisgilson@hotmail.com)Its all about creating and using objects. The example below uses VBScript to send an email via the Lotus Notes object, but should work with Outlook etc ... You just need to find out the properties specific to an object.Hope this helps...'/Code starts here...Dim objNotes As ObjectDim objDB As ObjectDim objDoc As ObjectSet objNotes = CreateObject("Notes.NotesSession")Set objDB = ojbNotes.GetDatabase("servername","path & file name")Set objDoc = objDB.CreateDocumentobjDoc.Form = "Memo"objDoc.SaveOptions = 0objDoc.Subject = "This is my Subject"objDoc.Body = "The body goes here"Call objDoc.Send(False, "Recipient")
Was this answer helpful ?
Yes No