add e-mail functionality