added e-mail functionality