473,320 Members | 1,799 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,320 software developers and data experts.

CreateMHTMLBody


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.ht m"

This is what I get.

CDO.Message.1 error '800c0005'

The system cannot locate the resource specified.

/BMG_Web/reporting/test2.asp, line 7
However, these line all work (I use them 1 at a time.

myMail.HTMLBody = "You need to find a way to get the data to show up
here."

myMail.CreateMHTMLBody
"http://home.mcihispeed.net/~tom_nolan/index.html"

myMail.CreateMHTMLBody "http://www.mci.com"

myMail.HTMLBody = "<html><title><head>This is HTML
Code</head></title><body><h1>Center Update</h1>Here is a
table.<p><table border='1'><tr><th>Heading 1</th><th>Heading
2</th></tr><tr><td>Row 1 Data 1</td><td>Row 1 Data
2</td></tr><tr><td>Row 2 Data 3</td><td>Row 2 Data
4</td></tr></table><p>How does this look?</body></html>"[/

Does anyone have any ideas of what I might be doing wrong?
Thanks
Tom

--
Tom_Nolan
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Jul 19 '05 #1
1 6376
Are you sure IUSR on your machine has sufficient access to \\mmcchapdc01\
(egads, who named your machines???)?
See http://www.aspfaq.com/2168

Have you tried \\...\ without the file: prefix?

Have you tried placing that HTML file on a web server somewhere and using an
http:// reference?

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


"Tom_Nolan" <To**************@mail.codecomments.com> wrote in message
news:To**************@mail.codecomments.com...

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.ht m"

This is what I get.

CDO.Message.1 error '800c0005'

The system cannot locate the resource specified.

/BMG_Web/reporting/test2.asp, line 7
However, these line all work (I use them 1 at a time.

myMail.HTMLBody = "You need to find a way to get the data to show up
here."

myMail.CreateMHTMLBody
"http://home.mcihispeed.net/~tom_nolan/index.html"

myMail.CreateMHTMLBody "http://www.mci.com"

myMail.HTMLBody = "<html><title><head>This is HTML
Code</head></title><body><h1>Center Update</h1>Here is a
table.<p><table border='1'><tr><th>Heading 1</th><th>Heading
2</th></tr><tr><td>Row 1 Data 1</td><td>Row 1 Data
2</td></tr><tr><td>Row 2 Data 3</td><td>Row 2 Data
4</td></tr></table><p>How does this look?</body></html>"[/

Does anyone have any ideas of what I might be doing wrong?
Thanks
Tom

--
Tom_Nolan
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Jul 19 '05 #2

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

Similar topics

0
by: Tom_Nolan | last post by:
I am having some trouble with the ASP Script that I have written. I will e-mail me Internet pages and HTML Code just fine, but when I tr to have it send an Intranet page, (which is in the same...
4
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...
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...
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: 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: 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...
1
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.