Changes for sending an temaplte email