Welcome to WebmasterWorld Guest from 18.104.22.168 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
email page not updating stevelibby msg:4217100 10:39 am on Oct 15, 2010 (gmt 0) i have written a quick script to email a dynamic web page on a daily basis in asp using cdosys, i have updated the dynamic page yet it appears to be sending the old page? Whats happening?
Ocean10000 msg:4217181 2:31 pm on Oct 15, 2010 (gmt 0)
Did your script take the snapshot of the page before you replaced it or after? (I assume after) Do you save the snapshot to a folder before sending it with cdosys? My guess the temporary file is not being deleted, thus you getting an older copy. stevelibby msg:4217353 9:41 pm on Oct 15, 2010 (gmt 0)
no i just used a send web page using cdosys script. any way i can force an update on these pages? Ocean10000 msg:4218251 2:55 pm on Oct 18, 2010 (gmt 0)
How are you capturing the output of the page? Maybe something in that process is the problem, not CDOSYS. stevelibby msg:4220676 10:39 pm on Oct 22, 2010 (gmt 0)
What do you mean? The HTML body = weburl in the script Ocean10000 msg:4221018 6:24 pm on Oct 23, 2010 (gmt 0)
Ok I am going to admit I didn't know CDO could pull down a webpage directly, so I assumed you were using a 3 party download took then sending this to CDOsys. So only thing I can think of is you are not setting "urlgetlatestversion Field" to true, so it is using a previously cached version when you tell it to email the webpage. References: CreateMHTMLBody Method [ msdn.microsoft.com]