configure email and alert