/** * */ public function execute() { $email = $this->emailService->create(); $email->addTo('*****@*****.**'); $this->emailService->setTemplate("/project/report-item/submit:mail"); $this->emailService->send(); print 'test'; }