Email Record: Programming logic and design :