added initial support for emailing users