return id of message when created
apply new template mail