Added code to send CA emails and CA email template