Cdo Error 80040213
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta cdo message 80040213 Discuss the workings and policies of this site About Us Learn cdo message 1 80040213 more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack error '8004020e' Overflow 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,
Cdo Message 1 Error 80040222 The Pickup Directory Path Is Required And Was Not Specified
helping each other. Join them; it only takes a minute: Sign up vbscript email error 80040213 “transport failed to connect to the server” up vote 0 down vote favorite I'm trying to duplicate a VBscript that I use in another office. If an error occurs I want to send an email. The process works fine on a the transport failed to connect to the server smtp Windows 7 machine but the Windows 2008 R2 Domain Controller gives me an error. I installed the MS MAPI/CDO package but it didn't help. It's the email.send line that gives the error. Sub SendAlertEmail Set email = CreateObject("CDO.Message") 'WScript.Echo"step 1" email.Subject = "Possible phone time collection failure" email.From = "user@gmx.com" email.To = "me@ttt.com" email.TextBody = Now() & " The collection of phone time that is done on the Broadlook PC seems to have failed. There has been no data for quite a while." email.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication email.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "ttt@gmx.com" email.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password" email.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2 email.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="smtp.gmx.com" email.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25 email.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = 1 email.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 30 email.Configuration.Fields.Update email.Send set email = Nothing 'WScript.Echo"step 2" End Sub vbscript cdo.message share|improve this question asked Apr 25 '14 at 19:22 user990016 5731720 1 Is it a 64 bit server? If so, you may want to execute it through the 32bit vbscript supported interface. Try going to your command prompt and typing C:\Windows\SysWOW64\cscript.exe C:\test\myscript.vbs –Rich Apr 25 '14 at 19:27 That seems
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta the transport failed to connect to the server vbscript Discuss the workings and policies of this site About Us Learn more
Error '80040211'
about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack
The Transport Failed To Connect To The Server Gmail
Overflow 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, http://stackoverflow.com/questions/23301334/vbscript-email-error-80040213-transport-failed-to-connect-to-the-server helping each other. Join them; it only takes a minute: Sign up Error Code: 80040213 Source CDO.Message.1 Failed to connect up vote 1 down vote favorite This is really only my second VBS script so be gentle... I did **** out anything that was personal or company related I am sure all those fields are correct anyways. The http://stackoverflow.com/questions/24417366/error-code-80040213-source-cdo-message-1-failed-to-connect SMTP server is correct I double checked with the provider as that was the number 1 reason i found on other sites. This script will also pull information from a certain cell and paste it into the body... Any help would be greatly appreciated! Also its saying the error is on line 46 which is the "ObjSendMail.Send". Everything works except the emailing portion... Dim ObjSendMail Set ObjSendMail = CreateObject("CDO.Message") Set objExcel = CreateObject("Excel.Application") StopDate = DateAdd("d", -1 - Weekday(Date), Date) StartDate = StopDate-13 Dim xlApp Dim xlWkb Dim monthEnd Set xlApp = CreateObject("excel.application") Set xlWkb = xlApp.Workbooks.Open("******") xlWkb.RunAutoMacros 1 xlApp.Run ("UpdateAll") monthEnd = xlApp.cells(2,7).value xlApp.ActiveWorkbook.SaveAs strSaveFile & "Monthly Revenue Report " & Year(Now) & "." & Month(Now) & "." & Day(Now) & ".xls", 56 xlApp.Quit Set xlWkb = Nothing Set xlApp = Nothing WScript.Sleep 10000 mailSubject = "Monhtly Revenue Report " & PrevMonthName mailBody = "The Monthly Revenue Report is no ready. Month End: " & monthEnd ObjSendMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 ObjSendMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.office365.com" ObjSendMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 ObjSendMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True ObjSendMail.Configuration.Fields.Item("http://sche
here for a quick overview of the site Help Center Detailed answers to any questions you http://stackoverflow.com/questions/25984864/cdo-message-1-error-80040213-the-transport-failed-to-connect-to-the-server-lo might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers http://galahtech.stinkbugonline.com/forum/index.php?topic=13060.0 or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community cdo message of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up CDO.Message.1 error '80040213' The transport failed to connect to the server. Local runs, Prod Server fails up vote 0 down vote favorite i have a problem with a Email.asp page. In local pc runs and the transport failed send email (use telnet ok), but, in Prod Server fails ("Connecting To zimbra.xxx.xxx...Could not open connection to the host, on port 25: Connect failed"). Error message is "CDO.Message.1 error '80040213' The transport failed to connect to the server.". Searching information says "Review the server has port 25 open". How do i do ? Open port in my Windows 2008 r2 server. <%Set iMsg = Server.CreateObject("CDO.Message") iMsg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing" )=2 iMsg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport" )=25 iMsg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver" )= "zzz.zzzzz.zzz" iMsg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate" ) = 1 iMsg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword" ) = "pass" iMsg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername" ) = "xxx@xxx.com" iMsg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl" ) = false iMsg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 ' new iMsg.Configuration.Fields.Update() iMsg.From = "xx@xxx.com" iMsg.Subject= "Web Site " iMsg.TextBody= "..." iMsg.To = "xxxx@gmail.com" iMsg.Send Response.Redirect "contact.html" %> asp-classic sendmail share|improve this question asked Sep 23 '14 at 0:01 Ricardo Ismael 72 windowsnetworking.com/articles-tutorials/windows-server-2008/… –Paul Sep 24 '14 at 15:48 add a comment| active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook. Your Answer
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 9279 times) msimmons Administrator Stars: +3/-0 Offline Gender: Posts: 8378 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: 8378 Re: Error sending email from asp classic (CDO.Message.1 error '80040213' ) « Reply