public function getTemplateContent($type)
    {
        $type = strtolower($type);
        $templateContent = "An error has occured.";
        if ($this->getOptions()->getTemplate($type)
            && file_exists($this->getOptions()->getTemplate($type))) {

            $templatePath = $this->getOptions()->getTemplate($type);
            // read content of file
            $templateContent = file_get_contents($templatePath);
        }

        // TODO: translations?
        return $templateContent;
    }