SMTPReg.vbs error

pts.
Tags:
Microsoft Exchange 2003
VBScript
I am attempting to add a disclaimer to all outgoing email. I read the MS KB article 317680 and downloaded the code for "EventSinkScript.vbs", but when I run it I get the following error: Script: C:Smptreg.vbs Line: 145 Char: 26 Error: Expected 'Then' Code: 800A03F9 Source: Microsoft VBScript compilation error I have both the SMTPReg.vbs and the EventSinkScript.vbs in the same directory and am pointing to the proper directory. I have downloaded the code for Smtpreg.vbs several times to ensure ALL of the code copied to the file, but continue to get the same error. Any ideas? Thanks in advance!

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,
in lines 145, 155, and others there are small typing mistakes. Insert a = between Err.Number and 0 at every occurance, and it should work.
Hope that helps
Manfred

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: