Added mail attribute to template