Fix mailmotor

Fixes mailmotor camel casing of the template name for "-" and "_".