IIS ASP - CreateMHTMLBody

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > August 2004 > CreateMHTMLBody





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CreateMHTMLBody
Tom_Nolan

2004-08-27, 6:17 pm


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\cent
er.htm"

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
------------------------------------------------------------------------

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com