mail worker now receives a template parameter