setting up email assignment