|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
E-mailing with WSH
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
|
|
#2
|
|||
|
|||
|
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")
|
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > E-mailing with WSH |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|