質問編集履歴
2
ヘッダー取得方法を変更してみましたが、どれも同一の内容でした。
title
CHANGED
File without changes
|
body
CHANGED
@@ -54,4 +54,14 @@
|
|
54
54
|
$from = mb_decode_mimeheader($header_list['From']);
|
55
55
|
|
56
56
|
// var_dump($header_list)."<hr>";
|
57
|
+
```
|
58
|
+
|
59
|
+
###追記
|
60
|
+
imap_open()でヘッダーを取得してみましたが、取得出来た内容は同一でした。
|
61
|
+
|
62
|
+
```
|
63
|
+
#imap_open
|
64
|
+
$mbox = imap_open("{localhost:110/pop3/notls}INBOX", "user", "pass");
|
65
|
+
echo imap_fetchheader($mbox,1);
|
66
|
+
imap_close($mbox);
|
57
67
|
```
|
1
ヘッダ情報を取得している箇所のソースコードを追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -31,4 +31,27 @@
|
|
31
31
|
To: xxxx
|
32
32
|
Content-Type: multipart/alternative;
|
33
33
|
|
34
|
+
```
|
35
|
+
|
36
|
+
###ヘッダー情報を取得する箇所のソースコード
|
37
|
+
```
|
38
|
+
$account = array(
|
39
|
+
'host' => 'localhost',
|
40
|
+
'port' => '110',
|
41
|
+
'username' => 'username',
|
42
|
+
'password' => 'password',
|
43
|
+
);
|
44
|
+
|
45
|
+
$pop3 =& new Net_POP3();
|
46
|
+
$pop3->connect($account['host'], $account['port']);
|
47
|
+
$pop3->login($account['username'], $account['password']);
|
48
|
+
$n_msg = $pop3->numMsg();
|
49
|
+
$header_list = $pop3->getParsedHeaders($n_msg);
|
50
|
+
$body = mb_convert_encoding($pop3->getBody($n_msg), "euc-jp", "jis");
|
51
|
+
$body = htmlspecialchars($body, ENT_QUOTES, "euc-jp");
|
52
|
+
$pop3->disconnect();
|
53
|
+
|
54
|
+
$from = mb_decode_mimeheader($header_list['From']);
|
55
|
+
|
56
|
+
// var_dump($header_list)."<hr>";
|
34
57
|
```
|