mail: use template where we have variables in use