473,659 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.CreateMH TMLBody
"file:\\mmcchap dc01\pcfiles\in traday\center.h tm"

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.CreateMH TMLBody
"http://home.mcihispeed .net/~tom_nolan/index.html"

myMail.CreateMH TMLBody "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 6411
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.codecom ments.com> wrote in message
news:To******** ******@mail.cod ecomments.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.CreateMH TMLBody
"file:\\mmcchap dc01\pcfiles\in traday\center.h tm"

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.CreateMH TMLBody
"http://home.mcihispeed .net/~tom_nolan/index.html"

myMail.CreateMH TMLBody "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
603
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 directory), get an error. This code does not work. myMail.CreateMHTMLBod "file:\\mmcchapdc01\pcfiles\intraday\center.htm"
4
4906
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 ASP page which is located on the same server. So the code looks like: <% Set objCdoMesg = Server.CreateObject("CDO.Message")
0
1393
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 the method. Any ideas? I have upgraded to VS 2003, and am wondering if that has something to do with it. I haven't gone thru this code in a while - so I can't say for sure that it stopped working when I "upgraded" to VS2003. I've deleted and...
0
3130
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: msg.CreateMHTMLBody(url,CDO.CdoMHTMLFlags.cdoSuppressNone, "", "" ); It errors with: "Interface not registered"
0
1464
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 MyMsg.CreateMHTMLBody(sURL,CdoMHTMLFlags.cdoSuppressNone I provide a full path (http://www.domain.com/.....etc) to the url at the same site. The URL exists at the site. I can navigate to it. I've tried both "html" and "aspx" extensions Commenting out the line works all the way thru and...
2
3385
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 normal System.Web.Mail constructs. It doesn't show up as a method on a message created this way. I found a couple of posts that talked about adding references to CDO for Exchange 2000. I did that and now VS2003 is giving me a correct method of my...
2
5560
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 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...
0
1442
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 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...
1
2836
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 the HTML file is only text and colors. When graphics (pictures) are involved, it often doesn't send them at all and the user only gets the text. Does somebody know of a known bug in this command, or maybe a certain restriction I need to follow?...
0
8427
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8746
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8525
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8627
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7356
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.