I have a form that is classic asp that basically collects some info and sends it to an email account. What I really to do is have an email reminder option added. The form is a monthly report and the idea is to have an option for the reminder. The email will be sent monthly. There are other things, but that's all for now. Can this all be done in SQL? And how would that work if so?
foundsheep
0
Junior Poster
Recommended Answers
Jump to PostI would cron/schedule a job to run a new program.
The new program should read through the member db. Then look at the last email sent date (you will create this field). Now do now() +30 days. If last email > now() - 30 days sent date send an …
Jump to PostI would do this:
Create a job that sends a page hit to a certain page, let's say emailall.aspx (where it is unable to be seen from an http_referrer.
On the emailall.aspx page, it should search the database and retrieve all records that have the new field that …
Jump to PostDon't forget to do a try catch for every single one, or do "on error resume next", however that is greatly depreciated and obsolete (but still works).
You would hate to throw an error half way through and half of the records don't viewed, and none will be updated.
…
Jump to PostOr what you can do, which would be a better bet cause it would leave less time with an open connection, is quickly store each value into an array (multi dimensional), then call it after.
The problem with this approach, you need to connect again to the server to …
Jump to PostNo, that is coded for inline. Therefore it is going to need a lot of "System...." crap.
All 35 Replies
techniner
2
Posting Pro
foundsheep
0
Junior Poster
SheSaidImaPregy
28
Veteran Poster
foundsheep
0
Junior Poster
SheSaidImaPregy
28
Veteran Poster
foundsheep
0
Junior Poster
SheSaidImaPregy
28
Veteran Poster
foundsheep
0
Junior Poster
SheSaidImaPregy
28
Veteran Poster
foundsheep
0
Junior Poster
foundsheep
0
Junior Poster
SheSaidImaPregy
28
Veteran Poster
foundsheep
0
Junior Poster
SheSaidImaPregy
28
Veteran Poster
foundsheep
0
Junior Poster
SheSaidImaPregy
28
Veteran Poster
foundsheep
0
Junior Poster
foundsheep
0
Junior Poster
SheSaidImaPregy
28
Veteran Poster
foundsheep
0
Junior Poster
foundsheep
0
Junior Poster
SheSaidImaPregy
28
Veteran Poster
foundsheep
0
Junior Poster
SheSaidImaPregy
28
Veteran Poster
foundsheep
0
Junior Poster
SheSaidImaPregy
28
Veteran Poster
foundsheep
0
Junior Poster
SheSaidImaPregy
28
Veteran Poster
foundsheep
0
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.