implements emailing to user