Forum Moderators: open

Message Too Old, No Replies

cdo message issues

transport failed to connect to server error - what's happening?

         

Stratus42

3:08 pm on Apr 18, 2004 (gmt 0)

10+ Year Member



Hey folks..

I'm having some server issues here.. I have a configuration where I'm using a remote smtp and I'm trying to send a form to an email address - standard asp stuff right? But I can't seem to get it to work on this server..

here's my error:

CDO.Message.1 error '80040213' 
The transport failed to connect to the server.
/recruiting.asp, line 68

and.. obviously line 68 is the .send line..
I just don't know what I'm doing wrong... here's my code


dim conf
If IsEmpty(Conf) Then
Const cdoSendUsingPort = 2
Const cdoBasic = 1 'basic (clear-text) authentication
Set Conf = CreateObject("CDO.Configuration")
With Conf.Fields
.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "myserver.ca" 'this is set to my server obviously
.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic
.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = "my username is here"
.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "my password is here"
.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False
.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
.Update
End With
End If

any help would be greatly appreciated! :-) cheers!

Lana

Stratus42

9:09 am on Apr 19, 2004 (gmt 0)

10+ Year Member



ahh.. yes.. well.. 5 hours of work on that one and you know what the problem was?

my hosting provider messed around with all of his dns names and stuff without telling me! (good thing he's a friend of mine) -

anyways.. he set up a special smtp account now just for me that he promises not to change without telling me..

why.. i aughtta.. good news is.. my form works now though! and my code was right..!