Question

Asked:
Asked By:
Jul 18 2005   9:29 AM GMT
twhite   0 pts.

SMTPReg.vbs error


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!

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



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
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Exchange and Development.

Looking for relevant Exchange Whitepapers? Visit the SearchExchange.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register