css into email template and some mail logic