Fixed a bug in mail function
added red color to high and overdue email output