http://help.maximumasp.com/SmarterTi...?articleid=892
This should answer your question!
"SS" wrote:
> 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 Removed)"
>
> .To = "(E-Mail 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
>
>
>
>
>
>
>