473,241 Members | 1,584 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,241 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 4866
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: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.