public function createMessage($content, array $records)
    {
        /** @var \Swift_Message $message */
        $message = $this->mailer->createMessage();
        $message->setTo($this->toEmail);
        $message->setFrom($this->fromEmail);
        $message->setSubject($this->subject);

        if ($this->contentType) {
            $message->setContentType($this->contentType);
        }

        return $message;
    }
public function createMessage($content, array $records)
    {
        /** @var \Swift_Message $message */
        $message = $this->mailer->createMessage();
        $message->setTo($this->toEmail);
        $message->setFrom($this->fromEmail);
        $message->setSubject($this->subject);

        if ($this->contentType) {
            $message->setContentType($this->contentType);
        }

        return $message;
    }
public function createMessage ( $ content , array $ records ) { /** @var \Swift_Message $message */ $ message = $ this -> mailer -> createMessage ( ) ; $ message -> setTo ( $ this -> toEmail ) ; $ message -> setFrom ( $ this -> fromEmail ) ; $ message -> setSubject ( $ this -> subject ) ; if ( $ this -> contentType ) { $ message -> setContentType ( $ this -> contentType ) ; } return $ message ; }
Creates a Swift_Message template that will be used to send the log message

@param string $content formatted email body to be sent
@param array  $records Log records that formed the content
@return \Swift_Message
Creates a Swift_Message template that will be used to send the log message