469,299 Members | 2,073 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,299 developers. It's quick & easy.

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 4647
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Tom_Nolan | last post: by
reply views Thread by null_port | last post: by
reply views Thread by SamNET | last post: by
2 posts views Thread by rschaeferhig | last post: by
2 posts views Thread by Richard Schaefer | last post: by
reply views Thread by Richard Schaefer | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.