[removed] CDO with Local SMTP Works on Win2k3, Not on Win2k8 R2

script works on my xp laptop everytime, but intermittenetly on 2003 ... Const cdoSendUsingPickup = 1 'Send message using the local SMTP ..

[removed] CDO with Local SMTP Works on Win2k3, Not on Win2k8 R2

I've got a rather odd problem (don't we all...) whereas the below (de-corporatized) Sub() works just fine on our old Windows 2003 server, but refuses to work on Windows 2008 R2:

Old OS: Windows Server 2003 64-bit

Old Eniv.: IIS 6.0 w/ Virtual SMTP Server configured to relay mail through Enterprise SMTP relay.

sub SendMail()
on error resume next

  'Send Mail vars
  Dim ObjSendMail
  Dim iConf
  Dim Flds

  Set ObjSendMail = CreateObject("CDO.Message")
  Set iConf = CreateObject("CDO.Configuration")
  Set Flds = iConf.Fields

  Set ObjSendMail.Configuration = iConf
    ObjSendMail.To = "dba1@blah.com;dba2@blah.com;dba3@blah.com"
    ObjSendMail.Subject = "Daily Primary Load Has Completed"
    ObjSendMail.From = "app-server@blah.com"

  ObjSendMail.Send
  Set ObjSendMail = Nothing
end Sub

New OS: Windows Server 2008 R2 64-bit

New Eniv.: IIS 7.5 w/ IIS 6.0 Manager & Compatibility w/ Virtual SMTP Server configured to relay mail through Enterprise SMTP relay (configured identical settings to Old server).

Every time I try to run the exact script above on the new machine, I get the very helpful error message of:

C:\Users\digitalnoise\email_test.vbs(21, 4) CDO.Message.1: The "SendUsing" configuration value is invalid.

I didn't develop this system or these scripts, and those that did are long gone, and it's fallen to me to maintain. Unfortunately I've never used VBScripting to automate things (I've used other items, but my view is changing), and so I'm just not familiar with this or how to figure out why my config isn't working.

I've been at this a couple of weeks, and most of the results I've come up with either won't work (MS's Remote SMTP Schema - servers don't have access to internet), or seem to apply specifically to VBScript in ASP.Net pages - which these scripts are not.

Things I have done:

  • Stopped & Restarted the SMTP Service after configuring the Virtual Server
  • Stopped & Restarted the Virtual SMTP Server after configuring it.
  • Stopped & Restarted IIS

Anyone have any ideas?


Click Here to Visit

What's Your Reaction?

like
0
dislike
0
love
0
funny
0
angry
0
sad
0
wow
0