Cdo Message On Error Resume Next
Contents |
Unanswered Topics Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Pro Code Clinic CDO Email cdo.message error codes Errors not trapped by On Error User Name Remember Me? Password Reminder
"cdo.message" Error Handling
Password Register Register | FAQ | Members List | Calendar | Today's Posts | Search ASP Pro Code cdo error Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here. Search Forums Show Threads Show Posts Advanced Search Find All Thanked Posts Go to Page... Welcome to the p2p.wrox.com Forums. You are currently viewing the ASP Pro Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free . Thread Tools Display Modes #1 (permalink) February 26th, 2004, 06:04 PM ebycer Registered User Join Date: Feb 2004 Location: , , . Posts: 3 Thanks: 0 Thanked 0 Times in 0 Posts CDO Email Errors not trapped by On Error Hi, I've got a problem where my apps email service is sporadic. Sometimes works like a charm, other times fails miserably. What's supposed to happen is the following: When an e-mail is successfully sent -- exit successfully and do nothing further. When an error occurs on the email Send command 1) Log the error # and description, body, subject, and distribution in a table 2) Generate a message for the user explaining that the e-mail has NOT been sent, but eve
(עברית)المملكة العربية السعودية (العربية)ไทย (ไทย)ëŒ€í•œë¯¼êµ (í•œêµì–´)ä¸åŽäººæ°‘共和国 (ä¸æ–‡)å°ç£ (ä¸æ–‡)日本 (日本語)  HomeLibraryLearnDownloadsRepositoryCommunityForumsBlog Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by: CDO.Message Scripting > The Official Scripting Guys Forum! Question 0 Sign in to vote Hello All Here is a script works fine but if I use vars so that the script does not need to edited by non tech users the script generates an error the line number point to this line Set objEmail = CreateObject("CDO.Message")  Here is the Script Dim objEmail Set objEmail = CreateObject("CDO.Message") objEmail.From = "me@domain.ca" objEmail.To = "myboss@domain.ca" objEmail.Subject = "Daily 6 AM Report" objEmail.Textbody = "The Daily report.htm is attached" objEmail.AddAttachment "C:\temp\report.htm" 'Modify the file name to add objEmail.Send I have http://p2p.wrox.com/asp-pro-code-clinic/9830-cdo-email-errors-not-trapped-error.html Run the same script on several Domains as a domain Admin I run it on an Exchange 2007 Hub and Exchange 2003 Hub Os is 2008 and 2003 The script above is sending another report without issue and the report I am trying to send sends on other domains without issue Is there a permission that maybe stop the email that is not included with a domain Administrators account Monday, June 18, https://social.technet.microsoft.com/Forums/scriptcenter/en-US/e4fcea4b-b5f6-4cd6-9e8a-a55eb682f723/cdomessage?forum=ITCG 2012 7:02 PM Reply | Quote Answers 0 Sign in to vote On Error REsume Next does not output errors it hides them.. YOu need to trap the error. The error message you posted is missing the error number which is the most important piece. If you are on an Exchange 2010 server the CDO is not installed by default. Try running just this one line of code in a separate file. Set objEmail = CreateObject("CDO.Message")  If it fails then you do not have CDO on the server. ¯\_(ツ)_/¯ Edited by jrv Tuesday, June 19, 2012 4:46 PM Proposed as answer by Richard MuellerMVP, Moderator Monday, July 09, 2012 1:39 AM Marked as answer by IamMredMicrosoft employee, Owner Tuesday, July 10, 2012 6:22 AM Tuesday, June 19, 2012 4:44 PM Reply | Quote All replies 0 Sign in to vote What variables did you introduce that causes the script to fail? What happens when it fails? What error messages do you see? Where do you specify the server that handles the mail generated by the script? Monday, June 18, 2012 7:34 PM Reply | Quote 0 Sign in to vote Hello thanks for your reply this is the Script and the only thing returned by it but it does not always return the error
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss http://stackoverflow.com/questions/19042756/cdo-not-sending-email 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 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 programmers, just like you, helping cdo message each other. Join them; it only takes a minute: Sign up CDO - Not Sending email up vote 2 down vote favorite 4 Helllo, i am calling ASP page from HTML on click of submit button, and in ASP i want to send Email. So i have writen below code, but neither it is sending mail nor i cdo message on am getting any Error. <% dim myMail Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="FromEmail" myMail.To="ToEmail" myMail.HTMLBody = "