Cdo.message.1 Unknown Error
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and cdo message 1 error 80070005 access is denied policies of this site About Us Learn more about Stack Overflow the could not access cdo message object 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 each other. Join them; it only takes a minute: Sign up CDOSYS error using HTMLBody (all right with TextBody) in Classic ASP up vote 1 down vote favorite 1 I have a problem with CDOSYS with HTMLBody on IIS 7.5 Simply, this doesn't work: Set Mail = CreateObject("CDO.Message") With Mail .Subject = "My mail test" .From = "me@localhost" .To = "myrealmail@mydomain.com" .HTMLBody = "My body message" .Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 .Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost" .Configuration.Fields.Update .Send End With Set Mail = Nothing And throws a misterious "CDO.Message.1 error '80040605' Unknown Error" at line .HTMLBody = "My body message" No problem if I change it with .TextBody = "My body message" Please, have you got a solution for this? Thanks in advance asp-classic cdo.message share|improve this question edited Feb 13 '15 at 7:42 Calon 2,28011125 asked Oct 16 '11 at 23:02 Ivan 64832336 Have a look that, may be helps : forums.asp.net/post/1348573.aspx –Kul-Tigin Oct 16 '11 at 23:44 Thanks, I tried to unregister/re-register cdosys.dll as suggested in that post, but no luck. Anyway I just discovered that it's a my-pc related issue: the same code on another machine (IIS 7.5 too) works perfectly... Well, I try to live with this problem on my development pc... –Ivan Oct 17 '11 at 9:01 i do not have iis7.5 to check this but please try once in this form .HTMLBody = "
My body message" –Jinesh Jain Oct 20 '11 at 13:13 I've just comehelp? Post your question and get tips & solutions from a community of 418,490 IT Pros & Developers. It's quick & easy. Unknown error in CreateMHTMLBody P: n/a Richard Schaefer I have a .Net web app (VB) that is creating CDO messages. We save a bunch of content from various sources as a web page on our web server. We then build a CDO message and use CreateMHTMLBody to send the web page. This takes care of embedding images, etc so we don't have to worry about spam filters (it's an internal app so I'm not spamming anyone except our own employees). Recently we had a problem where embedded graphics over about 100kb would cause the CreateMHTMLBody command to throw an error with CDO.Message.1 "Unknown error". The rest http://stackoverflow.com/questions/7787960/cdosys-error-using-htmlbody-all-right-with-textbody-in-classic-asp of the app works fine. If I reduce the graphics to under 100kb total then it works. So in trying to debug this I started getting the same error but for ALL my test emails. I even built one that is a simple HTML page with a P tag with "test" in it and that won't work. I copied the URL from the VS2003 debugger and pasted it into IE and it displays the page fine. Any ideas? Hints? Suggestions? I'm running XP/SP2 with the https://bytes.com/topic/asp-classic/answers/562191-unknown-error-createmhtmlbody .Net 2.0 Framework installed (this is a 1.1 app) and pretty much all the latest security patches for XP and Office. Nov 10 '06 #1 Post Reply Share this Question 2 Replies P: n/a Bob Barrows [MVP] Richard Schaefer wrote: I have a .Net web app (VB) There was no way for you to know it (except maybe by browsing through some of the previous questions in this newsgroup before posting yours - always a recommended practice) , but this is a classic asp newsgroup. ASP.Net bears very little resemblance to classic ASP so, while you may be lucky enough to find a dotnet-knowledgeable person here who can answer your question, you can eliminate the luck factor by posting your question to a group where those dotnet-knowledgeable people hang out. I suggest microsoft.public.dotnet.framework.aspnet. -- Microsoft MVP - ASP/ASP.NET Please reply to the newsgroup. This email account is my spam trap so I don't check it very often. If you must reply off-line, then remove the "NO SPAM" Nov 10 '06 #2 P: n/a Anthony Jones "Richard Schaefer" for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full https://www.experts-exchange.com/questions/26903139/CDO-error-CDO-Message-1-error-'8004011b-err-number-2147221221.html Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > CDO error - CDO.Message.1 error '8004011b err.number -2147221221 Want to Advertise Here? Solved CDO error - CDO.Message.1 error '8004011b err.number -2147221221 Posted on 2011-03-22 ASP Microsoft IIS Web Server 2 Verified Solutions 3 Comments 1,773 cdo message Views Last Modified: 2012-06-21 Hi I'm having a strange issue with IIS 7. I just moved an app from IIS 6 on one server to IIS 7 on another. It was working in IIS 6 just fine. Now I am getting an error message when trying to send via cdo using the virtual smtp tool. From the err object: err.number: -2147221221 err: Unknown Error The Hard cdo.message.1 unknown error Error: CDO.Message.1 error '8004011b' Unknown Error /quote_email_create.asp, line 198 The error seems to only occur at random... the customer sees the error, but when I go in and test, everything works fine. I'm not sure where the best way to proceed is since I cannot get the error to occur, but I've seen a screencast and it most certainly is failing when the customer runs the script. The only difference I can tell, is the from addresses, but when I log in with his account, it still works fine. Is there anything in my cdo code I can change to prevent the error above? if request("Action") & "" <> "Send Me a Proof" then strTo=request.form("ToEmail") & "" strBCC=session("UserEmail") & "" else strTo=session("UserEmail") & "" strBCC="" end if strSubject = request.form("txtSubject") & " " strBCC=session("UserEmail") strBody="" '''' strBody has a text from a textarea, wrapped in html... i omitted this in this sample for privacy sake, but if it could be related to the issue, let me know. lngImportance = 1 'strCC=request.form("txtCC")