| No | タイトル | ステータス | 重要度 | 担当 | 完了予定日 | 更新日時 | 記事数 |
|---|---|---|---|---|---|---|---|
| 104 | [バグ]Mailの添付ファイルの改行がおかしい | 完了 | 中 | yabeken | 2008-07-11 10:56 | 2008-07-25 23:46 | 3 |
|
|---|
| chunk_splitで改行コードを指定しないと、CRLFが常に出力されるので、 EOLがLFの場合、MTAでCRCRLFに書き換えされてしまいます。 chunk_splitの第2第3引数を指定すればOK。 function _attach($list,$id=false){ list($file,$type) = $list; $send = ""; $send .= $this->_lw(sprintf("Content-Type: %s; name=\"%s\"",(empty($type) ? "application/octet-stream" : $type),$file->getName())); $send .= $this->_lw(sprintf("Content-Transfer-Encoding: base64")); if($id) $send .= $this->_lw(sprintf("Content-ID: <%s>", $file->getName())); $send .= $this->_lw(); $send .= $this->_lw(trim(chunk_split(base64_encode($file->read()),76,$this->eol))); return $send; } |
|
|---|
| revision 3306. |
|
|---|
| 確認 |