こんにちは Noriです。
久しぶりのMODxと格闘中です、0.9.5で運用していたサイトを
0.9.6にバージョンアップし、OSもかなり古かったのでOSから
全てを入れ替えました。
現在の構成は
OS Fedora7、PHP 5.2.2、eAccelerator v0.9.5、MySQL 5.0.37
Modx自体は、UTF-8の環境で問題なく動作しているのですが、
eForm 1.4.4でのエラーが気になって投稿しました。
エラー内容は
≪ MODx Parse Error ≫
MODx encountered the following error while attempting to parse the requested resource:
≪ PHP Parse Error ≫
PHP error debug
Error: mb_send_mail() [function.mb-send-mail]: Unsupported charset ""UTF-8"" - will be regarded as ascii
Error type/ Nr.: Warning - 2
File: /var/www/html/modx/manager/includes/controls/class.phpmailer.php
Line: 438
Line 438 source: $rt = @mail($to, $this->EncodeHeader($this->Subject), $body, $header);
class.phpmailer.phpの、438行目を下のように変更
// $rt = @mail($to, $this->EncodeHeader($this->Subject), $body, $header);
$rt = @mb_send_mail($to, $this->Subject, $body);
一応 eformからのメール送信は出来ていますが、PHPが良く分かって
いないので、この変更であっているのでしょうか?。
ググってみると、PHP 5からmail関係で、色々問題があるようなのですが、
ドンピシャの症状がないので、質問致します。