473,569 Members | 2,789 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CreateMHTMLBody throws Unknown Error

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 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 .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
0 1439

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6403
by: Tom_Nolan | last post by:
I am having some trouble with the ASP Script that I have written. It will e-mail me Internet pages and HTML Code just fine, but when I try to have it send an Intranet page, (which is in the same directory), I get an error. This code does not work. myMail.CreateMHTMLBody "file:\\mmcchapdc01\pcfiles\intraday\center.htm"
4
4904
by: Braky Wacky | last post by:
Here's my scenario. I have an ASP page that I call on my server, say: http://myserver.com/firstPage.asp In this first ASP page, I want to send a MIME email that has the contents of another ASP page which is located on the same server. So the code looks like: <% Set objCdoMesg = Server.CreateObject("CDO.Message")
0
1389
by: Rex | last post by:
Hello... I have a C# app, and am trying to save a web page as a .mht file using CreateMHTMLBody. It was working a while back, but now I am getting "interface not registered" errors when calling the method. Any ideas? I have upgraded to VS 2003, and am wondering if that has something to do with it. I haven't gone thru this code in a while -...
0
3127
by: null_port | last post by:
Regarding Peter Bromberg's article on saving web pages as mht's using CDO: http://www.eggheadcafe.com/articles/20040527.asp I've been having fits when calling his sample code: msg.CreateMHTMLBody(url,CDO.CdoMHTMLFlags.cdoSuppressNone, "", "" ); It errors with: "Interface not registered"
4
7534
by: Aren Cambre | last post by:
Why does SmtpMail.Send throw an exception if the MailMessage's BodyFormat = MailFormat.Html? I've searched all over the place and cannot find a solution anywhere. I am running this on Windows XP SP2, and IIS's SMTP and WWW servers are installed. Here is the error trace: System.Web.HttpException: Could not access 'CDO.Message' object. --->...
2
3383
by: rschaeferhig | last post by:
I'm writing a .Net 1.1 app that needs to send emails with the body being formed by a locally served web page. Easy to do in legacy ASP. I found that apparently CreateMHTMLBody is not supported via normal System.Web.Mail constructs. It doesn't show up as a method on a message created this way. I found a couple of posts that talked about adding...
2
5553
by: Richard Schaefer | last post by:
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...
2
4815
by: oopaevah | last post by:
I am using the Microsoft.XMLHTTP object to make server requests ie; ajax. This is working 99% of the time but occasionally it will freeze at the server for 5 minutes and then raise a javascript exception "Unknown name". After the exception I can run the same request ok, and keep doing so until the next time it freezes for 5 minutes. What...
2
4534
by: bevis | last post by:
I'm new to sql server and mysql but this seems like it should be a pretty straight forward jdbc connection. But I have spent almost 2 days just trying to get a jdbc connection. Please help if you can. I'm using Eclipse 3.2.2 and I have installed mysql-connector-java-5.0.6-bin.jar. I am trying to connect to SQL Enterprise Manager version 8.0...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8120
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7672
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7968
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6283
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.