Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - MOD Request - Birthday E-Mail
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MOD Request - Birthday E-Mail

 Post Reply Post Reply Page  123 8>
Author
ToJaRo View Drop Down
Groupie
Groupie
Avatar

Joined: 20 April 2005
Location: United States
Status: Offline
Points: 158
Post Options Post Options   Thanks (0) Thanks(0)   Quote ToJaRo Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
dfrancis View Drop Down
Senior Member
Senior Member


Joined: 16 March 2005
Location: United States
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote dfrancis Quote  Post ReplyReply Direct Link To This Post Posted: 27 July 2006 at 6:30pm
That's a great idea!!
Back to Top
aks427 View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 06 December 2003
Location: United States
Status: Offline
Points: 276
Post Options Post Options   Thanks (0) Thanks(0)   Quote aks427 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
ToJaRo View Drop Down
Groupie
Groupie
Avatar

Joined: 20 April 2005
Location: United States
Status: Offline
Points: 158
Post Options Post Options   Thanks (0) Thanks(0)   Quote ToJaRo Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
ToJaRo View Drop Down
Groupie
Groupie
Avatar

Joined: 20 April 2005
Location: United States
Status: Offline
Points: 158
Post Options Post Options   Thanks (0) Thanks(0)   Quote ToJaRo Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
Demon View Drop Down
Mod Builder Group
Mod Builder Group
Avatar
Mod-n-Skin Moderator

Joined: 26 July 2003
Status: Offline
Points: 299
Post Options Post Options   Thanks (0) Thanks(0)   Quote Demon Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
dfrancis View Drop Down
Senior Member
Senior Member


Joined: 16 March 2005
Location: United States
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote dfrancis Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply Page  123 8>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.