If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Database triggers an email???

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-12-06, 16:06
vivianaranha vivianaranha is offline
Registered User
 
Join Date: Apr 2006
Posts: 2
Database triggers an email???

Hi,

I am using asp+mysql to build a website.

I want to send newsletters to people who subscribed at a time specified by them.

Suppose I want my newsletters to come at 3:00am on 14th dec every year.

the database has a table with
Name
Email
date/Time

Thanks,
Vivian Aranha
Reply With Quote
  #2 (permalink)  
Old 04-12-06, 17:42
dbmab dbmab is offline
Registered User
 
Join Date: Apr 2006
Location: Denver, Co. USA
Posts: 240
Someone correct me if I am wrong, but mysql only responds to queries and has no way to execute anything on a scheduled basis.

Normally, to accomplish what you want, you would write an ASP script to query the database and send out an email for those records that have a date/time in the past. Then you schedule your script to run, say every 5 minutes. Since you have ASP, I will assume you are on a windows operating system. The normal way to schedule a script to run on Windows is to use the task scheduler.

Hope this helps...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On