In your db create a table
columns:
Userid e_mail_time
1 10:00:00
1 10:30:00
2 10:45:00
Quote:
Make Userid as fk-to your user table
1.Insert a new row to the table all the time
user send a email.
2.Before sending email query the above table and check x no of
email send by the user in between a time interval