diff options
Diffstat (limited to 'lib/private/Mail/EMailTemplate.php')
-rw-r--r-- | lib/private/Mail/EMailTemplate.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/private/Mail/EMailTemplate.php b/lib/private/Mail/EMailTemplate.php index da3341b6709..e4e28a9294e 100644 --- a/lib/private/Mail/EMailTemplate.php +++ b/lib/private/Mail/EMailTemplate.php @@ -51,6 +51,8 @@ class EMailTemplate implements IEMailTemplate { protected $data; /** @var string */ + protected $subject = ''; + /** @var string */ protected $htmlBody = ''; /** @var string */ protected $plainBody = ''; @@ -359,6 +361,15 @@ EOF; } /** + * Sets the subject of the email + * + * @param string $subject + */ + public function setSubject($subject) { + $this->subject = $subject; + } + + /** * Adds a header to the email */ public function addHeader() { @@ -596,6 +607,15 @@ EOF; } /** + * Returns the rendered email subject as string + * + * @return string + */ + public function renderSubject() { + return $this->subject; + } + + /** * Returns the rendered HTML email as string * * @return string |