473,396 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

CreateMHTMLBody with local ASP URL doesn't work

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")
objCdoMesg.CreateMHTMLBody("http://myserver.com/secondPage.asp")
objCdoMesg.To = "me@mymail.com"
objCdoMesg.From = "me@mymail.com"
objCdoMesg.Subject = "Testing MIME messages"
objCdoMesg.Send
%>

This process will hang on the CreateMHTMLBody() method call. If I
move the second page to another server and reference it there, it's
fine. If I rename the second page to "secondPage.html" and leave it
on the local server and reference it that way (the second page doesn't
have any ASP code in it at this point, just HTML), it's fine.

It seems like the only time the hang occurs is when the requested file
is an ASP page and is located on the local server.

Anyone seen anything like this? I'm running on Windows 2000 Server
with all the current security updates. Seems like it may be something
in the way the process(es) are running.

Thanks,
Kevin
Jul 21 '05 #1
4 4877
Have a look at this:
http://support.microsoft.com/default...b;en-us;290591
it may be a similar problem.
--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com

"Braky Wacky" <he***********@hotmail.com> wrote in message
news:4e**************************@posting.google.c om...
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")
objCdoMesg.CreateMHTMLBody("http://myserver.com/secondPage.asp")
objCdoMesg.To = "me@mymail.com"
objCdoMesg.From = "me@mymail.com"
objCdoMesg.Subject = "Testing MIME messages"
objCdoMesg.Send
%>

This process will hang on the CreateMHTMLBody() method call. If I
move the second page to another server and reference it there, it's
fine. If I rename the second page to "secondPage.html" and leave it
on the local server and reference it that way (the second page doesn't
have any ASP code in it at this point, just HTML), it's fine.

It seems like the only time the hang occurs is when the requested file
is an ASP page and is located on the local server.

Anyone seen anything like this? I'm running on Windows 2000 Server
with all the current security updates. Seems like it may be something
in the way the process(es) are running.

Thanks,
Kevin

Jul 21 '05 #2
Did you try using 127.0.0.1, or localhost?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Braky Wacky" <he***********@hotmail.com> wrote in message
news:4e**************************@posting.google.c om...
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")
objCdoMesg.CreateMHTMLBody("http://myserver.com/secondPage.asp")
objCdoMesg.To = "me@mymail.com"
objCdoMesg.From = "me@mymail.com"
objCdoMesg.Subject = "Testing MIME messages"
objCdoMesg.Send
%>

This process will hang on the CreateMHTMLBody() method call. If I
move the second page to another server and reference it there, it's
fine. If I rename the second page to "secondPage.html" and leave it
on the local server and reference it that way (the second page doesn't
have any ASP code in it at this point, just HTML), it's fine.

It seems like the only time the hang occurs is when the requested file
is an ASP page and is located on the local server.

Anyone seen anything like this? I'm running on Windows 2000 Server
with all the current security updates. Seems like it may be something
in the way the process(es) are running.

Thanks,
Kevin

Jul 21 '05 #3
I was thinking it was probably something along those lines, i.e. a
threading issue with the process. I've since backed out of the plan
to use that functionality in favor of a reasonable workaround. Thanks
for the link. I knew I had seen something similar with XMLHTTP, but
had forgotten about it.

I may revisit, building the functionality inside of .NET with COM
interop, to see if the .NET runtime plays any nicer with it. But
that's an exercise for another day.

Kevin
"Mark Schupp" <no******@email.net> wrote in message news:<ew**************@TK2MSFTNGP10.phx.gbl>...
Have a look at this:
http://support.microsoft.com/default...b;en-us;290591
it may be a similar problem.
--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com

"Braky Wacky" <he***********@hotmail.com> wrote in message
news:4e**************************@posting.google.c om...
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")
objCdoMesg.CreateMHTMLBody("http://myserver.com/secondPage.asp")
objCdoMesg.To = "me@mymail.com"
objCdoMesg.From = "me@mymail.com"
objCdoMesg.Subject = "Testing MIME messages"
objCdoMesg.Send
%>

This process will hang on the CreateMHTMLBody() method call. If I
move the second page to another server and reference it there, it's
fine. If I rename the second page to "secondPage.html" and leave it
on the local server and reference it that way (the second page doesn't
have any ASP code in it at this point, just HTML), it's fine.

It seems like the only time the hang occurs is when the requested file
is an ASP page and is located on the local server.

Anyone seen anything like this? I'm running on Windows 2000 Server
with all the current security updates. Seems like it may be something
in the way the process(es) are running.

Thanks,
Kevin

Jul 21 '05 #4
Yeah, I tried that. I had high hopes for that solution. :) Alas, it
was not meant to be; I saw the same behavior there too. Thanks for
the suggestion though.

Kevin
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message news:<#G**************@TK2MSFTNGP09.phx.gbl>...
Did you try using 127.0.0.1, or localhost?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Braky Wacky" <he***********@hotmail.com> wrote in message
news:4e**************************@posting.google.c om...
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")
objCdoMesg.CreateMHTMLBody("http://myserver.com/secondPage.asp")
objCdoMesg.To = "me@mymail.com"
objCdoMesg.From = "me@mymail.com"
objCdoMesg.Subject = "Testing MIME messages"
objCdoMesg.Send
%>

This process will hang on the CreateMHTMLBody() method call. If I
move the second page to another server and reference it there, it's
fine. If I rename the second page to "secondPage.html" and leave it
on the local server and reference it that way (the second page doesn't
have any ASP code in it at this point, just HTML), it's fine.

It seems like the only time the hang occurs is when the requested file
is an ASP page and is located on the local server.

Anyone seen anything like this? I'm running on Windows 2000 Server
with all the current security updates. Seems like it may be something
in the way the process(es) are running.

Thanks,
Kevin

Jul 22 '05 #5

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

Similar topics

1
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...
0
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...
8
by: Tcs | last post by:
I've been stumped on this for quite a while. I don't know if it's so simple that I just can't see it, or it's really possible. (Obviously, I HOPE it IS possible.) I'm trying to get my queries...
0
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:...
0
by: SamNET | last post by:
I have a consistent Problem using CreateMHTMLBod Code works fine in development computer. When published to web it fails consitently at the line ...
2
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...
2
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...
0
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...
1
by: liorhm | last post by:
Hi everyone, I'm using CDOSYS to send an HTML file to my mailing list (about 800 users), with the following syntax: myMail.CreateMHTMLBody "http://www.xxx.zzz/hello.html" It works fine when...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...
0
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,...

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.