Lots of changes get email notifications to work.