public function sendMessageToEmail(Message $message, $user) {
        if (is_object($user)) {
            $toEmail = $user->getEmail();
        } else {
            $toEmail = $user;
        }

        if ($this->container->hasParameter('mailer_email')) {
            $mailer_email = $this->container->getParameter('mailer_email');
        } else if ($this->container->hasParameter('mailer_user')) {
            $mailer_email = $this->container->getParameter('mailer_user');
        } else {
            $mailer_email = "define@youremail.com";
        }
        $emailMessage = \Swift_Message::newInstance()
            ->setSubject($message->getMySenderEmailSubject($this->container, $user))
            ->setFrom($mailer_email)
            ->setTo($toEmail)
            ->setBody(
                $message->getMySenderEmailBody($this->container, $user),
                'text/html'
            )
        ;

        $senderAttach = $message->getMySenderEmailAttach($this->container, $user);
        if ($senderAttach != null) {
            if (is_array($senderAttach)) {
                foreach($senderAttach as $attach) {
                    $emailMessage->attach(\Swift_Attachment::fromPath($attach));
                }
            } else {
                $emailMessage->attach(\Swift_Attachment::fromPath($senderAttach));
            }
        }

        $this->container->get('mailer')->send($emailMessage);

        return true;
    }