implemented email delivery for user deletion