Unknown error in CreateMHTMLBody

R

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 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.
 
B

Bob Barrows [MVP]

Richard said:
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.
 
A

Anthony Jones

Richard Schaefer said:
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.

Send them a link to the web page ;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top