Cdonts Error Checking
Contents |
to catch problem emails? If this is your first visit, be sure to cdo.message error codes check out the FAQ by clicking the link above. You
Cdo Message Error Handling
may have to register before you can post: click the register link above to proceed. cdo error To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 3 of 3 Thread: Sending cdo.message.1 the transport failed to connect to the server Emails with CDO, how to catch problem emails? Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Apr 29th, 2008,04:47 AM #1 VB rookie View Profile View Forum Posts Thread Starter Lively Member Join Date Nov 2006 Posts 105 Sending Emails with CDO, how to catch problem emails? I have an automatic email function in my app, and the code looks like: Code: formAllEmails.MousePointer = vbHourglass 'setup for email Set objemail = CreateObject("CDO.Message") objemail.From = emailDisplayName & "<" & emailAddressDB & ">" objemail.To = p_email '*************** 'needs to chang to check type, then send appropriate message '*************** objemail.Subject = "An update on from " & emailDisplayName objemail.TextBody = message objemail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Name or IP of Remote SMTP Server objemail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = emailServer 'Type of authentication, NONE, Basic (Base64 encoded), NTLM objemail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic 'Your UserID on the SMTP server objemail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendusername") = emailAddressDB 'Your password on the SMTP server objemail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = emailPassword 'Server port (typically 25) objemail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = emailPort 'Use SSL for the connection (False or True) If emailSSL = "1" Then objemail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/s
360 games PC games Windows games Windows phone games Entertainment All Entertainment Movies & TV Music Business & Education Business Students & educators Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet http://www.vbforums.com/showthread.php?520679-Sending-Emails-with-CDO-how-to-catch-problem-emails Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Lumia All https://support.microsoft.com/en-us/kb/324649 Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft
here for a quick overview of the site Help Center Detailed answers to any questions you might http://stackoverflow.com/questions/7705005/how-to-check-is-mymail-send-is-true-false 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 or posting ads http://forums.iis.net/t/1146380.aspx?using+CDO+Message+ with us Stack 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 message error programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to check is myMail.Send is true/false up vote 3 down vote favorite 3 <% Dim sent Dim YourName Dim YourEmail Dim YourMessage Set myMail2=CreateObject("CDO.Message") YourName = Trim(Request.Form("Name")) YourEmail = Trim(Request.Form("Email")) YourMessage = Trim(Request.Form("Message")) Dim Body Dim body2 Body = cdonts error checking Body & "Their Name: " & VbCrLf & YourName & VbCrLf & VbCrLf Body = Body & "Their Email: " & VbCrLf & YourEmail & VbCrLf & VbCrLf Body = Body & "Their Message: " & VbCrLf & YourMessage & VbCrLf & VbCrLf Set myMail=CreateObject("CDO.Message") myMail.Subject="A New Enquiry!" myMail.From="admin@musicalmatters.co.uk" myMail.To="james@devine.eu" myMail.TextBody=Body myMail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2 'Name or IP of remote SMTP server myMail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserver")="smtp.1and1.com" 'Server port myMail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25 myMail.Configuration.Fields.Update myMail.Send set myMail=nothing body2="Thank you for contacting us!" & VbCrLf & "This is just a brief message to let you know your form was submitted successfully!"& VbCrLf & VbCrLf & "You may reply to this address, but you may not necessarily receive a reply, "& "you should receive a reply in 1-2 business day(s)!"& VbCrLf & "Thank you very much,"& VbCrLf & VbCrLf & "Musical Matters."& VbCrLf & "admin@musicalmatters.co.uk" Set myMail2=CreateObject("CDO.Message") myMail2.Subject="Thanks for Contacting Us!" myMail2.From="admin@musicalmatters.co.uk" myMail2.To=YourEmail myMail2.TextBody=body2 myMail2.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2 'Name or IP of remote SMTP server myMail2.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserver")="smtp.1and1.com" 'Server port myMail2.Configuration.Fie
Web 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 [Answered]RSS 12 replies Last post Nov 04, 2009 06:04 PM by debugmm ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Advanced Search Reply 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 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 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 ht