Added email feature to mdb