| ファイル:IlohaMail\conf\defaults.generic.inc |
| 88行目 |
$init_from_address = ""; //for "user@host"
↓
$init_from_address = "user@example.com"; //for "user@host"
Fromアドレスとしてここで設定したものを使う
この設定をしないとFromが ユーザ名@pop3(imap)サーバ名 になってしまう
|
| ファイル:IlohaMail\conf\conf.php |
| 196行目 |
$SMTP_SERVER = "";
↓
$SMTP_SERVER = "smtp.nifty.com";
Niftyの SMTPサーバなら上記のように設定する
Webサーバと SMTPサーバのホストが同じなら空でよい(localhostとみなす)
|
| ファイル:IlohaMail\conf\login.php |
| 32行目 |
$default_host = "";
↓
$default_host = "pop.nifty.com";
POP3/IMAPサーバの設定。上記は NiftyのPOP3サーバからメールを読む場合
Webサーバと同じホストでメールサーバも動いているなら空でよい(localhost)
いくつかのメールサーバから SELECTできるようにするなら 42-49行目を参照
|
| 75行目 |
$default_port = 143;
↓
$default_port = 110;
プロトコルのデフォルトがIMAPなら 143, POP3なら 110に
|
| 101行目 |
$default_lang = "eng/";
↓
$default_lang = "jp/";
表示を日本語に設定する
|
| 119行目 |
$hide_host = 0;
↓
$hide_host = 1;
メールサーバを固定し、他のサーバにはアクセスできないようにする
メールサーバが複数あるときは 0のままに
|
| 121行目 |
$hide_protocol = 0;
↓
$hide_protocol = 1;
IMAP/POP3を固定し、切り替えできないようにする
|
| 125行目 |
$hide_lang = 0;
↓
$hide_lang = 1;
言語を日本語固定にし変更しないなら
|
IlohaMailのインストール先の Manualフォルダに設定ファイルの全体の説明があるので一度見ておくのがよい。
| ファイル:IlohaMail\source\compose.php |
| 233行目 |
$a_name=base64_decode($file_parts[1]);
↓
$a_name=JcodeConvert(base64_decode($file_parts[1]),0,3);
|
238- 239行目 |
$part[$num_parts]["type"]="Content-Type: ".$a_type."; name=\"".$a_name."\"\n";
$part[$num_parts]["disposition"]="Content-Disposition: attachment; filename=\"".$a_name."\"\n";
↓
$part[$num_parts]["type"]="Content-Type: ".$a_type."; name=\""."=?iso-2022-jp?B?".base64_encode($a_name)."?="."\"\n";
$part[$num_parts]["disposition"]="Content-Disposition: attachment; filename=\""."=?iso-2022-jp?B?".base64_encode($a_name)."?="."\"\n";
|
| ファイル:IlohaMail\source\compose2.php |
| 363行目 |
$a_name=mod_base64_decode($file_parts[1]);
↓
$a_name=JcodeConvert(mod_base64_decode($file_parts[1]),0,3);
|
373- 374行目 |
$part[$num_parts]["type"]="Content-Type: ".$a_type."; name=\"".$a_name."\"\r\n";
$part[$num_parts]["disposition"]="Content-Disposition: attachment; filename=\"".$a_name."\"\r\n";
↓
$part[$num_parts]["type"]="Content-Type: ".$a_type."; name=\""."=?iso-2022-jp?B?".base64_encode($a_name)."?="."\"\r\n";
$part[$num_parts]["disposition"]="Content-Disposition: attachment; filename=\""."=?iso-2022-jp?B?".base64_encode($a_name)."?="."\"\r\n";
|
| 43行目 |
の下に追加
mb_http_output("euc-jp");
|
| ファイル:IlohaMail\source\view.php |
| 157行目 |
header("Content-type: ".$tnef_files[$tneffid]['type0']."/".$tnef_files[$tneffid]['type1']."; name=\"".$tnef_files[$tneffid]['name']."\"");
↓
header("Content-type: ".$tnef_files[$tneffid]['type0']."/".$tnef_files[$tneffid]['type1']."; name=\n\t\"".$tnef_files[$tneffid]['name']."\"");
|
179- 181行目 |
$name = str_replace("/",".",iml_GetPartName($structure, $part));
header("Content-type: $typestr; name=\"".$name."\"");
header("Content-Disposition: ".$DISPOSITION_MODE."; filename=\"".$name."\"");
↓
$name = mb_decode_mimeheader(str_replace("/",".",iml_GetPartName($structure, $part)));
header("Content-type: $typestr; name=\n\t\"".$name."\"");
header("Content-Disposition: ".$DISPOSITION_MODE."; filename=\"".JcodeConvert($name,0,2)."\"");
|
186- 187行目 |
$name=str_replace("/",".", iml_GetPartName($structure, $part));
header("Content-Type: text/plain; name=\"".$name."\"");
↓
$name=mb_decode_mimeheader(str_replace("/",".", iml_GetPartName($structure, $part)));
header("Content-Type: text/plain; name=\n\t\"".$name."\"");
|
| 190行目 |
$name=str_replace("/",".", iml_GetPartName($structure, $part));
↓
$name=mb_decode_mimeheader(str_replace("/",".", iml_GetPartName($structure, $part)));
|
| 196行目 |
header("Content-Disposition: ".$DISPOSITION_MODE."; filename=\"".$name."\"");
↓
header("Content-Disposition: ".$DISPOSITION_MODE."; filename=\"".JcodeConvert($name,0,2)."\"");
|
| 201行目 |
header("Content-Disposition: inline; filename=\"".$name."\"");
↓
header("Content-Disposition: inline; filename=\"".JcodeConvert($name,0,2)."\"");
|
| 33行目 |
の下に以下の2行を追加
include_once("../lang/jp/jcode.inc");
mb_http_output("pass");
|
| ファイル:IlohaMail\lang\EUC-JP.inc |
| 69行目 |
$result["type"]="Content-Type: text/plain; charset=\"us-ascii\"\r\n";
↓
$result["type"]="Content-Type: text/plain; charset=\"iso-2022-jp\"\r\n";
|