View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

How to trigger an email when reaching certain date?

Thread began 12/18/2009 7:35 pm by JBWebWorks | Last modified 1/01/2010 11:45 am by JBWebWorks | 1251 views | 8 replies

Eric Mittman

Having it setup like this would be a little tricker since the script itself does not know if an email has been sent to a certain person. You would need to control this with the rs query so that it did not select any user's that have had the email sent recently.

To do something like this you could update the records that you have sent the email to so that it indicates the message was sent. Then when you query the db you will need to filter these users out so that they do not appear in the recordset again. This would be a very custom piece though.

Another way you could do this would be to tighten up the query so that it only sends emails to user's that are a certain number of days away from expiring. For example if you had 5 users and three of them expire in 5 days, and the other two expire in six days you can have the query select only the users who expire in 5 days. This would send to the the three example workers whose expiration date is 5 days away but it would not send to the other two who expire in 6 days. When you run this same query 24 hours later there should only be two matches and they would get their email while the others remain untouched.

I think this is the best way to go about it, then you do not have to account for others that may have already received the email.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...