string $file -
ファイル名あるいはデータ自体です。
string $c_type -
イメージまたは画像のコンテントタイプ。
string $name -
データのためにファイル名を示唆します。
$fileの内容がデータだった場合のみ使用します。
boolean $isfile -
$file がファイル名かどうかをです。
string $encoding -
ファイルのデータを転送するための符号化の種類です。
デフォルトは "base64" です。
テキストベースのファイル(例えばスクリプトや HTML)には
"quoted-printable" が利用出来るかもしれません。
(訳注:日本語のテキストは通常
"base64" を使用します。)
表 45-1PEAR_Error の値
| エラーコート | エラーメッセージ | 原因 | 解決 |
|---|---|---|---|
| NULL |
"ファイル file_name が読み込めない"
| ファイルが見つからないか、 スクリプトのファイルへのアクセス権限が足りません。 | ファイル名とパスを確認します。ユーザーとファイルパーミッションを確認します。 |
| NULL |
"file_name を開くことができない"
| The file is already opened and exclusivly locked by another application. | In the most cases a programm opens the file for writing. addAttachment() does no file locking, so this problem is not caused by competitve callings of this function. |