set up email layout in core