AdditionalHeaders['To'] = $this->RecipientName.' <'.$this->RecipientAddress.'>'; $this->AdditionalHeaders['From'] = $this->SenderName.' <'.$this->SenderAddress.'>'; $this->AdditionalHeaders['MIME-Version'] = '1.0'; $this->AdditionalHeaders['Content-type'] = 'text/html; charset=UTF-8'; $Headers = ''; foreach($this->AdditionalHeaders as $Index => $Item) { $Headers .= $Index.': '.$this->EncodeBase64($Item)."\r\n"; } $Subject = $this->EncodeBase64($this->Subject); return(mail($this->RecipientAddress, $Subject, $this->Content, $Headers)); } function EncodeBase64($Text) { return('=?UTF-8?B?'.base64_encode($this->Subject).'?='); } }