|
And note that depending on the service, this email may not
actually get anywhere... When monitoring a system you should try to depend on
delivery of failure messages through a mechanism that doesn't depend on the
system being monitored...
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George Arezina Sent: Tuesday, July 13, 2004 9:55 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] VBS Help Thanks
guys, That did the
trick. Cheers. From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Creamer,
Mark George, I
think the email addresses need to be quoted, do they
not? e.g.
objEmail.From = “ <mc> From: George
Arezina [mailto: 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. |
- [ActiveDir] VBS Help George Arezina
- RE: [ActiveDir] VBS Help Creamer, Mark
- RE: [ActiveDir] VBS Help George Arezina
- RE: [ActiveDir] VBS Help Dale, Rick
