Adds email functionality to the core and send email controller.