make default fetch return the last entry and make sure we return C formatting; add...
[php-utility-classes.git] / include / classes / email.php-class
index 2de9ca4e67015145c556ca14cf81ca081fa38bf3..ff03a17363534d9083423d5e7538b9e0427f412e 100644 (file)
@@ -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') {