Welcome to WebmasterWorld Guest from 54.196.214.35

Forum Moderators: ocean10000

Message Too Old, No Replies

email page not updating

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

Preferred Member from GB 

10+ Year Member

joined:Jan 26, 2004
posts:636
votes: 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?
2:31 pm on Oct 15, 2010 (gmt 0)

Administrator

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

joined:Jan 14, 2004
posts:852
votes: 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.
9:41 pm on Oct 15, 2010 (gmt 0)

Preferred Member from GB 

10+ Year Member

joined:Jan 26, 2004
posts:636
votes: 0


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)

Administrator

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

joined:Jan 14, 2004
posts:852
votes: 0


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)

Preferred Member from GB 

10+ Year Member

joined:Jan 26, 2004
posts:636
votes: 0


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

Administrator

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

joined:Jan 14, 2004
posts:852
votes: 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]