473,574 Members | 2,474 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 6407
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
4904
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
1391
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 -...
0
3128
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
1463
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....
2
3384
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...
2
5554
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...
0
1440
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...
1
2833
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. ...
0
7710
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8040
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8225
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...
1
7800
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...
0
8092
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...
0
6437
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...
0
5296
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...
0
3738
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3745
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.