Created a thread in master page and have called email function to select mails which are not sent from databse.Mails are going but the problem is whenever a user clicks mails are going multiple times. Could anyone help me by calling function for every 5 minutes.