Changed the layout and got email working.