add basic email function.