add serial method (binary) and set serial to emailtempalte and externalemailtemplate