Hello everybody!
I have an issue that I can not resolve on my own (not enough knowledge)...
I need to send any outgoing e-mail from my 4images installation in UFT-8 format... I have modified the email.php as follows. (I use mail function of PHP and not SMTP)
....
$this->subject = iconv('windows-1251', 'UTF-8', $subject);
....
$header .= 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/html; charset=UTF-8' . "\r\n";
.....
// in function prepare_text($message) {
return iconv('windows-1251', 'UTF-8', $message);
...
function send_email() {
if ($this->use_smtp) {
return ($this->smtp_mail($this->to, $this->subject, $this->body, $this->create_header())) ? 1 : 0;
}
else {
//original line was - return (mail($this->to, $this->subject, $this->body, $this->create_header())) ? 1 : 0;
return (mail($this->to, '=?UTF-8?B?'.base64_encode($this->subject).'?=', $this->body, $this->create_header())) ? 1 : 0;
}
}
I hope there are pro-s out there who could help me out with this.... because in MS Oulook for example it works great, in AOL and Gmail.... but most of my users are on Mail.ru servers and those DO NOT display messages send using the above modifications correctly....
Any suggestions or hints would be greatly appreciated!
Aleksey