On 18 Dec, 15:47, "Bob Barrows" <reb01...@NOyahoo.SPAMcom> wrote:
> > Sorry, should have elaborated a little bit. Currently the scheduled
> > tasks calls a URL in IE - so the asp page is hosted on a web server
> > with the SQL server.
>
> On a different box?
Yes - scheduled task on PC at home, SQL hosted on a remote server, and
website hosted on a separate webserver elsewhere. The asp page and the
html file are both on the webserver.
> > I am all self taught starting with asp so dont
> > have any background in vb other than what i know from asp.
>
> You must not have read my link: no vb required: only the vbscript you
> used in your asp page.
I did read the link - thanks, was very helpful - was just answering
your first question of why I used an asp page in first place and not
vb!! Looks like I just need to change the server.createobject and
remove the response.write references I have that are used for
debugging.
>
> > The only problem i see with my current setup is that the template html
> > for the email is stored as an html file on the webserver *-could a vb
> > script read the text from that file using even though it is on a
> > different server? I suppose I could store the html in the database.
>
> > IIS is installed on the PC the scheduled task runs on, so i guess
> > CDONTS should work for sending the emails?
>
> It depends. It may already be installed. It is very likely that you want
> to be using CDO, not CDONTS:http://classicasp.aspfaq.com/email/h...-with-cdo.html
You're right, i'm using CDO currently on the webserver so shouldnt be
an issue. Have just checked on the local machine and CDO is installed
so i'll give it a whirl. Thanks very much!!