Fix fatal error in emailmgmt.