Cdo Message 1 Error 80040213
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss vba 80040213 the workings and policies of this site About Us Learn more about error 8004020f Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow error 80040211 Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each cdo message 1 error 80040213 godaddy other. Join them; it only takes a minute: Sign up asp CDO.Message.1 error '80040213' The transport failed to connect to the server. /check.asp, line 25 up vote 4 down vote favorite 2 CDO.Message.1 error '80040213' The transport failed to connect to the server. /check.asp, line 25 please help to solve this problem check this code <%@ Language=VBScript %>
Error 8004020e
<% dim to_field, message to_field = Request.Form("to_field") message = Request.Form("message") 'Create the e-mail server object Set objCDOSYSMail = Server.CreateObject("CDO.Message") Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration") 'Out going SMTP server objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.xxx.com" objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 objCDOSYSCon.Fields.Update 'Update the CDOSYS Configuration Set objCDOSYSMail.Configuration = objCDOSYSCon objCDOSYSMail.From = "admin@xxx.com" ' the address you want the email to be from objCDOSYSMail.TO = "anuradha@gmail.com" 'the address the mail is to be sent to objCDOSYSMail.Subject = "Subject goes here" objCDOSYSMail.HTMLBody = "fffffffffff" objCDOSYSMail.Send 'Close the server mail object Set objCDOSYSMail = Nothing Set objCDOSYSCon = Nothing %>
Mail sent successfully to address <%=to_field%>!
asp-classic share|improve this question edited Nov 23 '11 at 7:53 Cheran Shunmugavel 6,09211732 asked Dec 2 '10 at 8:31 anuradha 24115 add a comment| 3 Answers 3 active oldest votes up vote 3 down vote You need to add your user name and password before sending. This is because you used a value of 2 in the sendusing's field. This means you're using authenticWeb Platform Installer Get Help: Ask a Question in our Forums More Help Resources Blogs Forums Home IIS.NET Forums IIS 5 & IIS 6 Classic ASP using CDO.Message using CDO.Message
Cdo Message 1 Error 80040222
[Answered]RSS 12 replies Last post Nov 04, 2009 06:04 PM by debugmm ‹ cdo message 1 error 80040220 Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Advanced Search Reply cdo message 1 error 80070005 santosh.jha.... 6 Posts using CDO.Message Sep 25, 2007 08:34 AM|santosh.jha.net|LINK Hi, I am using CDO.Message object to send message without using configuration setting of the CDO object. It is working on http://stackoverflow.com/questions/4333068/asp-cdo-message-1-error-80040213-the-transport-failed-to-connect-to-the-server a server I do know the operating system .but it does not work on server running windows 2003. it gievs error in cdoobject.send Will u tell me plz what is the reason .why it runns on a server and not on other .as in both i have nt aspecified the SMTP server . Reply tomkmvp 9756 Posts MVPModerator Re: using CDO.Message Sep 25, 2007 http://forums.iis.net/t/1146380.aspx?using+CDO+Message+ 08:49 AM|tomkmvp|LINK it would help for us to know the error message ... Tom Kaminski (former IIS MVP 2002-2010) http://mvp.support.microsoft.com/ Reply santosh.jha.... 6 Posts Re: using CDO.Message Sep 26, 2007 01:22 AM|santosh.jha.net|LINK CDO.Message.1 error '80040213' The transport failed to connect to the server. Now in this I have aspecified the SMTP server but no username and password as the provider didnot provided it. they say only specifying the server name it will work. Reply steve schofi... 5631 Posts MVPModerator Re: using CDO.Message Sep 26, 2007 04:07 AM|steve schofield|LINK Hmm...I suspect if the SMTP service isn't turned on or isn't configured to allow relaying. Verify its listening on port 25, open a command prompt, type in netstat -an -p tcp and see if 0.0.0.0:25 is listening. http://support.microsoft.com/kb/230235is probably the article you want. Here are several other articles from support.microsoft.com http://www.google.com/search?hl=en&q=site%3Asupport.microsoft.com+IIS+smtp Steve Schofield Windows Server MVP - IIS http://iislogs.com/steveschofield http://www.IISLogs.com Log archival solution Install, Configure, Forget Reply santosh.jha.... 6 Posts Re: using CDO.Message Sep 27, 2007 01:53 AM|santosh.jha.net|LINK i have checked the command on my local system and 0.0.0.0.25 is listning but still now i am getting problem .reality
The transport failed to connect to the server. The SitePoint Forums have moved. You can now find them here. This forum is now closed to new posts, http://www.sitepoint.com/forums/showthread.php?648538-CDO-Message-1-The-transport-failed-to-connect-to-the-server but you can browse existing content. You can find out more information about http://galahtech.stinkbugonline.com/forum/index.php?topic=13060.0 the move and how to open a new account (if necessary) here. If you get stuck you can get support by emailing forums@sitepoint.com If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the cdo message register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. SitePoint Sponsor User Tag List Results 1 to 12 of 12 Thread: CDO.Message.1 The transport failed to connect to the server. Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Nov 23, 2009,12:23 #1 cdo message 1 daredevil8 View Profile View Forum Posts SitePoint Member Join Date Nov 2009 Posts 7 Mentioned 0 Post(s) Tagged 0 Thread(s) CDO.Message.1 The transport failed to connect to the server. hi all, i am newbie here. i was trying to send mail using ASP from iis, but i encountered error as below:- CDO.Message.1 (0x80040213) The transport failed to connect to the server. i already google about the error and tried to fix error, but seems like the error unable to solve. i already tried to disable my PC firewall and McCafee antivirus, but the error still remain. Hope that someone can help me with the error. thanks a lot in advance. below are the codes that i applied.... Nov 23, 2009,12:40 #2 daredevil8 View Profile View Forum Posts SitePoint Member Join Date Nov 2009 Posts 7 Mentioned 0 Post(s) Tagged 0 Thread(s) here is the script that i applied Code: <% Const cdoSendUsingMethod1 = "httpschemasmicrosoftcom/cdo/configuration/sendusing" Const cdoSendUsingPort1 = 2 Const cdoSMTPServer1 = _ "httpschemasmicrosoftcom/cdo/configuration/smtpserver" Const cdoSMTPServerPort1 = _ "httpschemasmicrosoftcom/cdo/configuration/smtpserverport" Const cdoSMTPConnectionTimeout1 = _ "httpschemasmicrosoftcom/cdo/configuration/smtpconnectiontimeout" Const cdoSMTPAuthenticate1 = _ "httpschemasmicrosoftcom/cdo/configuration/smtpauthenticate"
YOU TO ACCESS THE SITE! Galahtech|Development|Web Development|Topic: Error sending email from asp classic (CDO.Message.1 error '80040213' ) Pages: [1] Go Down « previous next » Print Author Topic: Error sending email from asp classic (CDO.Message.1 error '80040213' ) (Read 9251 times) msimmons Administrator Stars: +3/-0 Offline Gender: Posts: 8375 Error sending email from asp classic (CDO.Message.1 error '80040213' ) « on: August 25, 2008, 01:15:41 PM » QuoteCDO.Message.1 error '80040213' The transport failed to connect to the server. /inc_functions.asp, line 126 Code:Function sendEmail(theTo, theSubj, theBod)dim objCDOMaildim cdoConfigdim schdim cdoMessage sch = "http://schemas.microsoft.com/cdo/configuration/" Set cdoConfig = Server.CreateObject("CDO.Configuration") With cdoConfig.Fields .Item(sch & "sendusing") = 2 .Item(sch & "smtpserver") = "123.456.789.123" .Item(sch & "smtpauthenticate") = "1" .Item(sch & "sendusername") = "dev_acct@company.com" .Item(sch & "sendpassword") = "passwordlol" .update End With Set cdoMessage = Server.CreateObject("CDO.Message") With cdoMessage Set .Configuration = cdoConfig .From = "dev_acct@company.com" .To = theTo .bcc = "msimmons@company.com" .Subject = theSubj .HTMLBody = theBod End With cdoMessage.Send 'THIS IS LINE 126End FunctionMy web based time submission app is having issues sending users their reciepts... It only happens to some users and seems pretty random, but becoming more frequent and users are freaking out now.let me know if more info is needed Logged ..... ..... Slowhand Supporters Stars: +0/-0 Offline Gender: Awards: Posts: 4668 I code C#! Re: Error sending email from asp classic (CDO.Message.1 error '80040213' ) « Reply #1 on: September 01, 2008, 10:04:00 AM » We had that too, recently.Apparently you had to use a different object.I'll see if I can find it. Logged msimmons Administrator Stars: +3/-0 Offline Gender: Posts: 8375 Re: Error sending email from asp classic (CDO.Message.1 error '80040213' ) « Reply #2 on: September 02, 2008, 11:38:50 AM » cool, that would be great (I meant to mention this started (or seemed to start) when we upgraded to exchange '07 ... but the thing that kills me is it only happens to about 15% of the emails