From 3aa9a02fdcc1ca19759648c6c19abd1c5c6cc7d1 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Sat, 10 Jul 2010 15:31:33 +0200 Subject: [PATCH] add a setCharset() function to email and use it to set charsets --- include/classes/email.php-class | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/classes/email.php-class b/include/classes/email.php-class index 2de9ca4..ff03a17 100644 --- a/include/classes/email.php-class +++ b/include/classes/email.php-class @@ -96,6 +96,9 @@ class email { // public function addHeaderAddress($hname, $email, [$name]) // add an address header to the mail, possibly with both name and mail parts // + // public function setCharset($newcharset) + // set charset for this mail + // // public function addMailText($textpart) // add some text to the mail // @@ -164,6 +167,8 @@ class email { $this->headers[] = array('name' => $hname, 'content' => $hcontent); } + public function setCharset($newcharset) { $this->charset = $newcharset; } + public function addMailText($textpart) { $this->mailtext .= $textpart; } public function addAttachment($aname, $acontent, $atype = 'application/octet-stream') { -- 2.35.3