private function sendEmail(OutputInterface $output, $content)
    {
        $output->writeln("Sending an email");
        $transport = $this->getTransport();
        $mailer    = \Swift_Mailer::newInstance($transport);

        $message = \Swift_Message::newInstance('Bldr Notify - New Message')
            ->setFrom(['no-reply@bldr.io' => 'Bldr'])
            ->setTo($this->getEmails())
            ->setBody(
                "<p>Bldr has a new message for you from the most recent build</p>\n<br /><pre>{$content}</pre>\n",
                "text/html"
            )
            ->addPart($content, 'text/plain')
        ;

        $result = $mailer->send($message);

        return $result;
    }
private function sendEmail(OutputInterface $output, $content)
    {
        $output->writeln("Sending an email");
        $transport = $this->getTransport();
        $mailer    = \Swift_Mailer::newInstance($transport);

        $message = \Swift_Message::newInstance('Bldr Notify - New Message')
            ->setFrom(['no-reply@bldr.io' => 'Bldr'])
            ->setTo($this->getEmails())
            ->setBody(
                "<p>Bldr has a new message for you from the most recent build</p>\n<br /><pre>{$content}</pre>\n",
                "text/html"
            )
            ->addPart($content, 'text/plain')
        ;

        $result = $mailer->send($message);

        return $result;
    }
private function sendEmail ( OutputInterface $ output , $ content ) { $ output -> writeln ( "Sending an email" ) ; $ transport = $ this -> getTransport ( ) ; $ mailer = \ Swift_Mailer :: newInstance ( $ transport ) ; $ message = \ Swift_Message :: newInstance ( 'Bldr Notify - New Message' ) -> setFrom ( [ 'no-reply@bldr.io' => 'Bldr' ] ) -> setTo ( $ this -> getEmails ( ) ) -> setBody ( "<p>Bldr has a new message for you from the most recent build</p>\n<br /><pre>{$content}</pre>\n" , "text/html" ) -> addPart ( $ content , 'text/plain' ) ; $ result = $ mailer -> send ( $ message ) ; return $ result ; }
Sends an email with the given message

@param OutputInterface $output
@param string          $content

@return int
Sends an email with the given message