|
Hi guys, I’m trying to create a script that would automatically
send me an email message when a service fails on my DC. However, I always get
the following error: Script: E:\vbs scripts\mail.vbs Line: 3 Char: 23 Error: Invalid character Code: 800A0408 Source: Microsoft VBScript compilation error The following is the contents of the script: set objArgs = Wscript.Arguments Set objEmail = CreateObject("CDO.Message") objEmail.From = objEmail.To = objEmail.Subject = objArgs(0) & " service is
down" objEmail.Textbody = "The service " &
objArgs(0) & " has failed." objEmail.Send set objArgs = nothing set objEmail = nothing Any help would be appreciated very much. Cheers, George Informacija sa Opportunity International Serbia putem e-maila je bez garancije. Zakljucivanje pravnih poslova putem ovog medija nije dozvoljeno. Ovaj e-mail moze sadrzati poverljive i/ili povlascene informacije. Ukoliko ste ovaj e-mail primili greskom, ovim putem vas obavestavamo da je svako otkrivanje, kopiranje, distribucija ili preduzimanje bilo kakvih aktivnosti u vezi njegovog sadrzaja strogo zabranjeno i moze biti nezakonito. Ukoliko ste e-mail primili greskom, molimo Vas da nas odmah obavestite tako sto cete odgovoriti na ovaj email, a zatim ga izbrisite iz vaseg sistema. ____________________________________________________________ ____________________________________________________________ The exchange of messages with Opportunity International Serbia via e-mail is not binding. Declarations regarding legal transactions must not be exchanged via this medium. The information contained in this e-mail message is confidential and intended exclusively for the addressee. Persons receiving this e-mail message who are not the named addressee (or his/her co-workers, or persons authorized to take delivery) must not use, forward or reproduce its contents. If you have received this e-mail message by mistake, please contact us immediately and delete this email message beyond retrieval. |
- RE: [ActiveDir] VBS Help George Arezina
- RE: [ActiveDir] VBS Help Creamer, Mark
- RE: [ActiveDir] VBS Help George Arezina
- RE: [ActiveDir] VBS Help Dale, Rick
