We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Problem with SMTPreg scripts

Medium Priority
698 Views
Last Modified: 2013-11-05
We have upgraded our servers from 2003 to 2008 64Bit. When I run the instal script with is below I get a Type Mismatch error for this line of code

     Set GetBindings = oSource.GetBindingManager.Bindings(catidEventType)


cscript SMTPreg.vbs /add 2 OnArrival SMTPScriptingHost CDO.SS_SMTPOnArrivalSink "mail from=*"
cscript SMTPreg.vbs /setprop 2 OnArrival SMTPScriptingHost Sink ScriptName "D:\Mail\mailjobs\onarrival.vbs"

Open in new window

Comment
Watch Question

CERTIFIED EXPERT

Commented:
Was the old server a 32 bit?
If you are migrating from a 32 bit to a 64 bit then I don't know if the registry settings are going to import this way.  
On a 64 bit machine, it will run 32 bit code but it is in a compatibility mode.  The registry and its settings are set up to handle 64 bit applications as the default.  
You might need to modify your files to change the registry paths they are referencing to make a 32 bit reference work on a 64 bit machine.

Author

Commented:
Yes the old server was 32bit... I dont think registry setting are the problem... we didnt move any over.

Has anybody used smtpreg.vbs on a 64bit 2008 server?
CERTIFIED EXPERT
Commented:
Check out this page ... they appear to be doing what you are trying to do.
http://www.eggheadcafe.com/community/aspnet/17/10076972/register-a-transport-even.aspx

One question, from looking at their config and instructions ... is the drive and path to the .vbs file in the second command correct?  This is the only thing that I see that might be causing a problem.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.