Win2k3, CDO, CDONTS, an SMTP relay = My Nightmare

Results 1 to 2 of 2

Thread: Win2k3, CDO, CDONTS, an SMTP relay = My Nightmare

  1. #1
    Join Date
    Dec 1969

    Default Win2k3, CDO, CDONTS, an SMTP relay = My Nightmare

    I can&#039;t get my stupid server to send out emails via CDO. I upgraded from a Windows 2000 server, but as I quickly found out, 2k3 no longer supports CDONTS... Fine, I read, I could use CDO.. No problem.. I configured the virtual server settings in IIS (to the best of my ability) and used the following code:<BR><BR>&#039;Create Objects<BR>Dim objMessage, objConfig<BR>Set objMessage = Server.CreateObject("CDO.Message")<BR>Set objConfig = Server.CreateObject("CDO.Configuration")<BR><BR>&# 039;Create Configuration<BR>With objConfig.Fields<BR>.Item("") = ""<BR>.Item("") = 15<BR>.Update()<BR>End With <BR><BR>&#039;Send Email<BR>objMessage.Configuration = objConfig<BR>objMessage.To = ""<BR>objMessage.From = ""<BR>objMessage.Subj ect = "Feedback"<BR>objMessage.HTMLBody = "test"<BR><BR>objMessage.Send<BR><BR>&#039;Des troy Objects<BR>Set objMessage = Nothing<BR>Set objConfig = Nothing <BR><BR>but no dice... nothing happens.. though the email DOES show up on the server&#039;s INETPUB/Mail/Pickup or whatever directory... Its just not hitting the SMTP server for some reason.. I can&#039;t figure out why. Is there something i&#039;m missing in the IIS Config? a script problem?<BR><BR>dep

  2. #2
    Join Date
    Dec 1969

    Default RE: try this ?

    smtp = "SMTPSERVER"<BR>sch = "" <BR> Set cdoConfig = CreateObject("CDO.Configuration") <BR> With cdoConfig.Fields <BR> .Item(sch & "sendusing") = 2 &#039; cdoSendUsingPort <BR> .Item(sch & "smtpserver") = smtpserv<BR> .update <BR> End With <BR> Set cdoMessage = CreateObject("CDO.Message") <BR> With cdoMessage <BR> Set .Configuration = cdoConfig <BR> .From = email<BR> .To = email<BR> .Subject = subject<BR> .HTMLBody = message<BR> .Send <BR> End With <BR> Set cdoMessage = Nothing <BR> Set cdoConfig = Nothing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts