added: controller.mail()
customized for new version