CDO help

S

SS

Hi

I get the following when submitting a form

name test

address test

CDO.Message.1 error '80040213'

The transport failed to connect to the server.

/Forms/confirmation2.asp, line 56



the following is the script on the confirmaion page having changed the
server name and the from and to fields

<!--

METADATA

TYPE="typelib"

UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"

NAME="CDO for Windows 2000 Library"

-->



<%

Set cdoConfig = CreateObject("CDO.Configuration")



With cdoConfig.Fields

.Item(cdoSendUsingMethod) = cdoSendUsingPort

.Item(cdoSMTPServer) = "<servername.com>"

.Update

End With



Set cdoMessage = CreateObject("CDO.Message")



With cdoMessage

Set .Configuration = cdoConfig

.From = "(e-mail address removed)"

.To = "(e-mail address removed)"

.Subject = "Sample CDO Message"

.TextBody = "This is a test for CDO.message"

.Send

End With



Set cdoMessage = Nothing

Set cdoConfig = Nothing

%>



</body>



Any ideas would be great?



Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top