Added functionality to send reminder mails