示例#1
0
 public function getAddress() {
     return CharacterEncodingHelper::header(
                     $this->mailbox, CharacterEncodingHelper::UTF8
             ) . '@' . CharacterEncodingHelper::header(
                     $this->host, CharacterEncodingHelper::UTF8);
 }
示例#2
0
    public function getHtmlBody($encoding = CharacterEncodingHelper::UTF8) {
        $this->parseParts();

        return CharacterEncodingHelper::text($this->htmlBody, $encoding, $this->characterEncodingHtml);
    }
 public function testText() {
     $text = "test met € en é en ë.";
     
     $this->assertEquals($text, CharacterEncodingHelper::text($text, CharacterEncodingHelper::UTF8));
 }