Added support for automatically sending reminder mails. Needs testing.