public function notifyNewArtist(Artist $artist) { $message = \Swift_Message::newInstance()->setSubject('Hello Email')->setFrom($this->from)->setTo($this->to)->setBody('Artist ' . $artist->getName() . 'created'); $this->mailer->send($message); }