projects
/
php-utility-classes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6930520
)
add a setCharset() function to email and use it to set charsets
author
Robert Kaiser
<kairo@kairo.at>
Sat, 10 Jul 2010 13:31:33 +0000
(15:31 +0200)
committer
Robert Kaiser
<kairo@kairo.at>
Sat, 10 Jul 2010 13:31:33 +0000
(15:31 +0200)
include/classes/email.php-class
patch
|
blob
|
blame
|
history
diff --git
a/include/classes/email.php-class
b/include/classes/email.php-class
index 2de9ca4e67015145c556ca14cf81ca081fa38bf3..ff03a17363534d9083423d5e7538b9e0427f412e 100644
(file)
--- 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 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
//
// public function addMailText($textpart)
// add some text to the mail
//
@@
-164,6
+167,8
@@
class email {
$this->headers[] = array('name' => $hname, 'content' => $hcontent);
}
$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') {
public function addMailText($textpart) { $this->mailtext .= $textpart; }
public function addAttachment($aname, $acontent, $atype = 'application/octet-stream') {