From: Robert Kaiser Date: Sat, 10 Jul 2010 13:31:33 +0000 (+0200) Subject: add a setCharset() function to email and use it to set charsets X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=3aa9a02fdcc1ca19759648c6c19abd1c5c6cc7d1;p=php-utility-classes.git add a setCharset() function to email and use it to set charsets --- 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') {