[thelist] Sending mail problem with ASP/CDO

Ken Schaefer Ken at adOpenStatic.com
Sat Feb 26 05:32:57 CST 2005


: I'm running Server2003 and there are a few things using localhost, which
: I'm guessing might be my problem. Any idea how I can troubleshoot this? 
: Seems like it just cannot see the correct web site...
: 
: Tom


There's nothing wrong with connecting to the website. The problem is that you
are attempting to use a COM component to do some work. It's, in turn,
attempting to connect to the SMTP server running on localhost, and it's not
being able to do so (for whatever reason), and so it's generating an
exception.

Cheers
Ken

: -----Original Message-----
: From: thelist-bounces at lists.evolt.org [mailto:thelist-
: bounces at lists.evolt.org] On Behalf Of Tom Dell'Aringa
: Sent: Saturday, 26 February 2005 3:38 AM
: To: Joshua Olson; thelist at lists.evolt.org
: Subject: RE: [thelist] Sending mail problem with ASP/CDO
: 
: 
: --- Joshua Olson <joshua at waetech.com> wrote:
: Try this instead...
: 
: As per your suggestion I tried:
: --------------------------------
: 
:     Set objCDO      = CreateObject("CDO.Message")
:     Set objCDOConfig  = CreateObject("CDO.Configuration")
:     Set objFields    = objCDOConfig.Fields
: 
:     With objFields
:       .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") =
: "127.0.0.1:92"
: 
: .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") =
: 25
:       .Item("http://schemas.microsoft.com/cdo/configuration/SendUsing") =
: 2
:       .Update
:     End With
: 
:     With objCDO
:       .Configuration  = objCDOConfig
:       .To          = "tom at somewhere.com"
:       .From        = "no-reply at somewhere.com"
:       .Subject     = "eHandbook Contact Message"
:       .TextBody    = "This is my message."
:       .Send
:     End With
: 
:     Set objFields = Nothing
:     Set objCDO = Nothing
:     Set objCDOConfig = Nothing
: --------
: 
: I for the smtp server I first tried the localhost alone at 127.0.0.1 but
: got the same error I am
: getting now, which is why I tried hitting the port this web site is set
: on. (92) Neither works and
: I get this:
: 
: COM Error Number  	-2147220973 (0x80040213)
: File Name 	/SVM1/Handbook/process-contact.asp
: Line Number 	28
: Brief Description 	The transport failed to connect to the server.
: 



More information about the thelist mailing list