Welcome to WebmasterWorld Guest from 23.22.46.195

Forum Moderators: ocean10000

email page not updating

   
10:39 am on Oct 15, 2010 (gmt 0)

10+ Year Member



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?
2:31 pm on Oct 15, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



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.
9:41 pm on Oct 15, 2010 (gmt 0)

10+ Year Member



no i just used a send web page using cdosys script. any way i can force an update on these pages?
2:55 pm on Oct 18, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



How are you capturing the output of the page? Maybe something in that process is the problem, not CDOSYS.
10:39 pm on Oct 22, 2010 (gmt 0)

10+ Year Member



What do you mean? The HTML body = weburl in the script
6:24 pm on Oct 23, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



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]
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month