antalp71
asked on
CDO.Message.1 error '80040213'The transport failed to connect to the server
Hi There
All of a sudden our website CDO script no longer sends forms. We get the message:-
CDO.Message.1 error '80040213'
The transport failed to connect to the server.
/cart/EMailApplication.asp , line 144
I cant think what has changed to stop it working. The relevant code ( I think) is:-
Function SendEmail(sndMailFromAddre ss, sndMailFromName, sndMailRecipient, sndMailCC, sndMailSubject, sndMailBody, sndAttachment)
Dim objMsg
Dim objConf
Set objMsg = Server.CreateObject("CDO.M essage")
Set objConf = Server.CreateObject("CDO.C onfigurati on")
With objConf.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = GlobalMailHost
.Item(cdoSMTPServerPort) = 25
.Item(cdoSMTPAuthenticate) = cdoBasic
.Item(cdoSendUserName) = GlobalMailUsername
.Item(cdoSendPassword) = GlobalMailPassword
.Update
End With
Set objMsg.Configuration = objConf
With objMsg
.From = """" & sndMailFromName & """ <" & sndMailFromAddress & ">"
.To = sndMailRecipient
if MailCC <> "" then
.Cc sndMailCC
end if
.Subject = sndMailSubject
.TextBody = sndMailBody
if sndAttachment <> "" then
.AddAttachment sndAttachment
end if
.Send (line 144)
And the settings used are:-
GlobalMailHost = "auth.smtp.1and1.co.uk"
GlobalMailUsername = "XXXXX@comptonskinner.co.u k"
GlobalMailPassword = "XXXXXXX"
'GlobalAdminEmail = "XXXX@firstchoice.org.uk"
GlobalAdminEmail = "XXXXXt@cscrecruitment.co. uk"
GlobalCompanyName = "CSC Job Shop"
Any help would really be appreciated.
All of a sudden our website CDO script no longer sends forms. We get the message:-
CDO.Message.1 error '80040213'
The transport failed to connect to the server.
/cart/EMailApplication.asp
I cant think what has changed to stop it working. The relevant code ( I think) is:-
Function SendEmail(sndMailFromAddre
Dim objMsg
Dim objConf
Set objMsg = Server.CreateObject("CDO.M
Set objConf = Server.CreateObject("CDO.C
With objConf.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = GlobalMailHost
.Item(cdoSMTPServerPort) = 25
.Item(cdoSMTPAuthenticate)
.Item(cdoSendUserName) = GlobalMailUsername
.Item(cdoSendPassword) = GlobalMailPassword
.Update
End With
Set objMsg.Configuration = objConf
With objMsg
.From = """" & sndMailFromName & """ <" & sndMailFromAddress & ">"
.To = sndMailRecipient
if MailCC <> "" then
.Cc sndMailCC
end if
.Subject = sndMailSubject
.TextBody = sndMailBody
if sndAttachment <> "" then
.AddAttachment sndAttachment
end if
.Send (line 144)
And the settings used are:-
GlobalMailHost = "auth.smtp.1and1.co.uk"
GlobalMailUsername = "XXXXX@comptonskinner.co.u
GlobalMailPassword = "XXXXXXX"
'GlobalAdminEmail = "XXXX@firstchoice.org.uk"
GlobalAdminEmail = "XXXXXt@cscrecruitment.co.
GlobalCompanyName = "CSC Job Shop"
Any help would really be appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi
Thanks for the replies. The mail server is a 1and1 web host mail server and any emails are just forwarded on so the mail server should be functioning. As for the firewall this should not matter as we are not hosting this email account ourselves.
saoirse1916:
I am not sure what you mean. Is it not set to port 25 " .Item(cdoSMTPServerPort) = 25"
The 1and1 settings should be
E-mail Settings
E-mail address website@comptonskinner.co. uk
Incoming E-mail Delivery Points
No.1: Mailbox
Password ********
Virus protection Disabled
Disk space 0.0 MB of 2 GB used
No.2: Forward
Target contact@cscrecruitment.co. uk
Options Auto-responder Off
Spam filtering Off
Mail ServerIncoming server (IMAP) imap.1and1.co.uk | | Info
Incoming server (POP) pop.1and1.co.uk | | Info
Outgoing server (SMTP) auth.smtp.1and1.co.uk
Please note: To send e-mail using the SMTP-Server, activate SMTP Authentication. Please do not use the Secure Password Authentication (SPA) option. Optionally, port 587 can also be used in addition to the default port RFC 2476.
Thanks for the replies. The mail server is a 1and1 web host mail server and any emails are just forwarded on so the mail server should be functioning. As for the firewall this should not matter as we are not hosting this email account ourselves.
saoirse1916:
I am not sure what you mean. Is it not set to port 25 " .Item(cdoSMTPServerPort) = 25"
The 1and1 settings should be
E-mail Settings
E-mail address website@comptonskinner.co.
Incoming E-mail Delivery Points
No.1: Mailbox
Password ********
Virus protection Disabled
Disk space 0.0 MB of 2 GB used
No.2: Forward
Target contact@cscrecruitment.co.
Options Auto-responder Off
Spam filtering Off
Mail ServerIncoming server (IMAP) imap.1and1.co.uk | | Info
Incoming server (POP) pop.1and1.co.uk | | Info
Outgoing server (SMTP) auth.smtp.1and1.co.uk
Please note: To send e-mail using the SMTP-Server, activate SMTP Authentication. Please do not use the Secure Password Authentication (SPA) option. Optionally, port 587 can also be used in addition to the default port RFC 2476.
ASKER
Hi
Is this script using the correct authentication. The email account works if I use outlook and set authentication to same as incoming mail server.
.Item(cdoSMTPAuthenticate) = cdoBasic ?
Your help appreciated
Is this script using the correct authentication. The email account works if I use outlook and set authentication to same as incoming mail server.
.Item(cdoSMTPAuthenticate)
Your help appreciated
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you for your input, I checked the points raised but in the end instead of working on a local copy I checked the hosted page and it turned out to be a 1st draft page with no CDO script settings. I am shocked and a bit dumbfounded how the page could have reverted to the first draft. Its almost like all the files got overwritten by a old cached copy. Not my doing and I am the only one with access.
thank you for your help!
thank you for your help!
Open in new window
You didn't specify here what the value of "cdoSendUsingPort" (probably 2, but it could be 1). If the server is housed on the same machine as the web server, then set this to 1 -- otherwise use 2.