You ASP must be processed through your web server to render correctly. You
can't just grab the .asp file contents. Use the following code snippet to
get the .asp from the web.
System.Net.WebClient wc = new System.Net.WebClient();
StreamReader stm = new
StreamReader(wc.OpenRead("http://www.womentowomen.info/emailtemplates/grid23
..asp?id=122"));
return stm.ReadToEnd();
You will have to change image references for them to render correctly.
--
Best regards,
Jeffrey Palermo
Blog:
http://dotnetjunkies.com/weblog/jpalermo
"da" <> wrote in message
news:am7ud.53994$...
> I need to send an .ASP page as an email template using VBScript. I'd like
> to do so using CDONTS or CDOSYS.
>
> this is the dynamic email template
> http://www.womentowomen.info/emailte...d23.asp?id=122
>
> the script needs to loop through a recordset and send emails using data
from
> SQL 2000.
>
> when i try to send using a script i built the asp page pulls in without
> rendering the asp. how can i pull the rendered asp into my vb for
emailing?
>
> Please help???
>
>