* @param string $content Content of this text part.
*/
public function __construct($content) {
- parent::__construct($content, 'text/html', 'email_html');
+ parent::__construct('text/html', 'email_html', 'wcf', $content);
}
}
* @param string $content Content of this text part.
*/
public function __construct($content) {
- parent::__construct($content, 'text/plain', 'email_plaintext');
+ parent::__construct('text/plain', 'email_plaintext', 'wcf', $content);
}
}
/**
* Creates a new AbstractRecipientAwareTextMimePart.
*
- * @param string $content Content of this text part (this is passed to the template).
* @param string $mimeType Mime type to provide in the email. You *must* not provide a charset. UTF-8 will be used automatically.
* @param string $template Template to evaluate
* @param string $application Application of the template to evaluate (default: wcf)
+ * @param string $content Content of this text part (this is passed to the template).
*/
- public function __construct($content, $mimeType, $template, $application = 'wcf') {
+ public function __construct($mimeType, $template, $application = 'wcf', $content = '') {
parent::__construct($content, $mimeType);
$this->template = $template;