|
|
@@ -50,6 +50,8 @@ class EMailTemplate implements IEMailTemplate { |
|
|
|
/** @var array */ |
|
|
|
protected $data; |
|
|
|
|
|
|
|
/** @var string */ |
|
|
|
protected $subject = ''; |
|
|
|
/** @var string */ |
|
|
|
protected $htmlBody = ''; |
|
|
|
/** @var string */ |
|
|
@@ -358,6 +360,15 @@ EOF; |
|
|
|
$this->data = $data; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Sets the subject of the email |
|
|
|
* |
|
|
|
* @param string $subject |
|
|
|
*/ |
|
|
|
public function setSubject($subject) { |
|
|
|
$this->subject = $subject; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Adds a header to the email |
|
|
|
*/ |
|
|
@@ -595,6 +606,15 @@ EOF; |
|
|
|
$this->plainBody .= str_replace('<br>', PHP_EOL, $text); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Returns the rendered email subject as string |
|
|
|
* |
|
|
|
* @return string |
|
|
|
*/ |
|
|
|
public function renderSubject() { |
|
|
|
return $this->subject; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Returns the rendered HTML email as string |
|
|
|
* |