UTF8
This commit is contained in:
parent
da41634c79
commit
f54075da3a
1 changed files with 7 additions and 7 deletions
|
@ -79,16 +79,16 @@ class mail {
|
|||
|
||||
function bodytext($text) {
|
||||
$this->textbody = "--" . $this->boundary . "\n";
|
||||
$this->textbody .= "Content-Type: text/plain\n";
|
||||
$this->textbody .= "Content-Transfer-Encoding: 8bit\n\n";
|
||||
$this->textbody .= $text;
|
||||
$this->textbody .= "Content-Type: text/plain; charset=utf-8\n";
|
||||
$this->textbody .= "Content-Transfer-Encoding: base64\n\n";
|
||||
$this->textbody .= base64_encode($text);
|
||||
}
|
||||
|
||||
function htmltext($text) {
|
||||
$this->htmlbody = "\n--" . $this->boundary . "\n";
|
||||
$this->htmlbody .= "Content-Type: text/html\n";
|
||||
$this->htmlbody .= "Content-Transfer-Encoding: 8bit\n\n";
|
||||
$this->htmlbody .= $text;
|
||||
$this->htmlbody .= "Content-Type: text/html; charset=utf-8\n";
|
||||
$this->htmlbody .= "Content-Transfer-Encoding: base64\n\n";
|
||||
$this->htmlbody .= base64_encode($text);
|
||||
}
|
||||
|
||||
function clear_bodytext() { $this->textbody = ""; }
|
||||
|
@ -105,7 +105,7 @@ class mail {
|
|||
|
||||
$_body .= "\n--$this->boundary--";
|
||||
|
||||
mail($to, $subject, $_body, $this->get_header());
|
||||
mail($to, '=?utf-8?B?'.base64_encode($subject).'?=', $_body, $this->get_header());
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue