I need some ideas in regards to the database management of the email alerts that my website is sending out.
My website sends out deal alerts of the products on deals everyday. Typically a product deal stays ON for 3-4 days and my script is sending the same deal everyday through emails until it expires. I want to create a log mechanism such that when I send alert emails, it automatically logs what deals have been already sent to the specific user so that next day it wont send the same ones. Currently all my deals are stored in a MySQL database and the alerts are send through a search query. Typically each email would have a list of deals that matches the keyword provided by the user.
Please help out.. Thanks in advance!