Fixed the build on the email notification code

The notification code is still Work In Progress.