Update Template.php

Forget to replace $Mail->getToName() by $toName var