update templete and set smtp