add emailfunctionality