| Author |
Topic Search Topic Options
|
ToJaRo
Groupie
Joined: 20 April 2005
Location: United States
Status: Offline
Points: 158
|
Post Options
Thanks(0)
Quote Reply
Topic: MOD Request - Birthday E-Mail Posted: 27 July 2006 at 6:26pm |
I am not sure if this is possible but I would like to have a mod that would read the DB to see if a members b-day was on that day and then send them a pre-made email to say Happy B-Day.
Would this be a difficult request?
|
|
|
 |
dfrancis
Senior Member
Joined: 16 March 2005
Location: United States
Status: Offline
Points: 442
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 July 2006 at 6:30pm |
That's a great idea!!
|
 |
aks427
Mod Builder Group
Joined: 06 December 2003
Location: United States
Status: Offline
Points: 276
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 July 2006 at 8:27pm |
|
The difficulty with that is, you would need to set it up your server to run that check each day.
|
 |
ToJaRo
Groupie
Joined: 20 April 2005
Location: United States
Status: Offline
Points: 158
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 July 2006 at 8:33pm |
I assume you mean a SQL script that checks the DB as a scheduled task daily. How would you then generate the email?
I run my own servers so getting access to them is not an issue.... I just dont have the asp/SQL experience to pull this kinda task off.
My thought was making it as simple as a email notification. Users get notifications to replies to their post or even a new post. The b-day email should be similar to that.
|
|
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 July 2006 at 10:18pm |
|
email notifications are triggered by someone physically posting. There's no built in facility in IIS to automatically trigger something on most web hosts. But with access to the server, you can use the windows scheduler to run an asp script that hits the db and tthen sends the email.
If it's set up for it, you can also use ms sql mail to send something direcly from the db server.
Edited by dpyers - 27 July 2006 at 10:19pm
|
Lead me not into temptation... I know the short cut, follow me.
|
 |
ToJaRo
Groupie
Joined: 20 April 2005
Location: United States
Status: Offline
Points: 158
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 July 2006 at 10:26pm |
Where can I find such a script? I am thinking it would be custom. Can anyone direct me in the right direction to accomplish this?
|
|
|
 |
Demon
Mod Builder Group
Mod-n-Skin Moderator
Joined: 26 July 2003
Status: Offline
Points: 299
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 July 2006 at 11:19pm |
|
Someone doesn't have to 'physically' post, they can just be browsing a page, and the page could do a logic test for birthdays. You can fake an automatic birthday email by creating a script on the common.asp page, or make a new page and include it in the common.asp page.
In theory, whenever any page in the forum is loaded the script would execute by checking for any birthdays on the current date, check to see if a flag has been setup yet saying when the last birthday email was sent, if there is none or its from last year then execute a block of code that emails a preset birthday message to the user who's birthday it is. The script would then set the mentioned flag for the Date/Time that the email was sent; this would prevent the script from emailing a user multiple times, since anyone that accesses your forum will basically make that script run.
|
|
So Sayith the Demon.
|
 |
dfrancis
Senior Member
Joined: 16 March 2005
Location: United States
Status: Offline
Points: 442
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 July 2006 at 11:40pm |
I would imagine that everyone checks their forums every day... well except for dp (grin). Any traffic can trigger the routine. I like the idea so much I'm thinking of writing it myself.
 Be afraid... be very afraid. LOL 
|
 |