Cdo Message 1 Error 80040218
here for a quick overview of the site Help Center Detailed answers to any questions you 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 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 .addattachment not working with none standard file extensions up vote 1 down vote favorite I have some code which sends emails out with an attachment. sch = "http://schemas.microsoft.com/cdo/configuration/" Set cdoConfig = CreateObject("CDO.Configuration") Set cdoMessage = CreateObject ("CDO.Message") With cdoMessage Set .Configuration = cdoConfig .From = strEmail .To = "address removed" .Subject = "subject email" strMessageBody = "
Message
" .HTMLBody = strMessageBody .AddAttachment (strFile) .Send End With Code works fine for attachments ending ".doc", ".xls" ".ppt", ".zip" As soon as any "none standard" extensions are used, for example say ".msg" I get an error message: "CDO.Message.1 error '80040218' Unknown Error " Any ideas or workarounds? asp-classic cdo.message share|improve this question edited Mar 30 '11 at 4:35 Dee 1,375177 asked Jan 31 '11 at 11:32 MrG 227110 You can zip the attachment and send it zipped if everything else fails. :) –Shadow Wizard Jan 31 '11 at 16:07 Any ideas how to do this on the fly, on a server I can't install any software on? I'm currently just validating to make sure no "rogue" attachments go through. –MrG Feb 1 '11 at 10:30 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote I've had problems sending attachments before using CDO. I solved my problems by specifing the correct encoding mechanism. You might need to do some experimentation. I successfully attach .pdf, .doc, .xls, .ppt files via asp classic and CDO.Message e.g. myMail.BodyPart.ContentTransferEncoding = "8bit" Reference available here share|improve this answer answered May 16 '11 at 14:39 Andy Davies 1,186714 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged asp-classic cdo.message or ask your own question. asked 5 years ago viewed 1178 times active 5 years ago RElementsAdobe Dreamweaver Adobe MuseAdobe Animate CCAdobe Premiere ProAdobe After EffectsAdobe IllustratorAdobe InDesignView all communitiesExplore Menu beginsMeet the expertsLearn our productsConnect with your peersError: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page. Please enter a title. You can not post a blank message. Please type your message and try again. More discussions in Develop server-side applications http://stackoverflow.com/questions/4850369/addattachment-not-working-with-none-standard-file-extensions in Dreamweaver All CommunitiesDreamweaver support forumDevelop server-side applications in Dreamweaver 1 Reply Latest reply on Feb 5, 2008 8:16 AM by Newsgroup_User CDO is driving me insane Watch4him Feb 5, 2008 8:04 AM Hi All, I'm trying to send an html file in an email using CDO in https://forums.adobe.com/thread/253982 asp and it continues to return errors. I get this... CDO.Message.1 error '80040218' Unknown Error /FACELIFT/safety/DoorManagement/rqst_email_send_approve.asp, line 13 I have another page in a different application that performs the same operation and yet... WORKS. Any Ideas?? Here is the code: 364Views Tags: none (add) This content has been marked as final. Show 1 reply 1. Re: CDO is driving me insane Newsgroup_User Feb 5, 2008 8:16 AM (in response to Watch4him) http://classicasp.aspfaq.com/email/why-does-cdo-message-give-800c000d-errors.html If the server is valid but the page cannot be found, you will get: CDO.Message.1 error '80040218' Unknown Error -- Ken Ford Adobe Community Expert - Dreamweaver Fordwebs, LLC http://www.fordwebs.com "Spirit_Filled"
help? Post your question and get tips & solutions from a community of 418,436 IT Pros & Developers. It's quick & easy. Unknown error in CreateMHTMLBody P: n/a Richard Schaefer I have a .Net web app (VB) that https://bytes.com/topic/asp-classic/answers/562191-unknown-error-createmhtmlbody 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 http://www.devsuperpage.com/search/Articles.aspx?hl=en&G=20&ArtID=374929 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 cdo message the CreateMHTMLBody command to throw an error with CDO.Message.1 "Unknown error". The rest 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 cdo message 1 and pasted it into IE and it displays the page fine. Any ideas? Hints? Suggestions? I'm running XP/SP2 with the .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"