Web Notifications
Hey -
So I am working on developing a notification system for my classifieds website. If a user searches for an item and it doesn't exist yet in the classifieds, the user has the option of being notified when the item is added to the database.
Should I go about this as follows? :
Whenever a user uploads an item, the upload stored procedure should also call another procedure to check if the item matches any items in the notifications table of the database.
If there is a match between both items, the user will be notified. Should I create a procedure that upon an item being uploaded, the script will check if it should notify, and return true to my asp page. When true, the codebehind will send an email from the asp page itself.
Is this the best way to do this?
Is there a way for the database itself to send an email? Or should this all be on the asp server side of things?
Last edited by ajwhite; 10-21-2009 at 09:59 PM.
|