Refactor email sending. Add notification for new user invitation #5