boolean addHTMLImage (
string $file
,
string
$c_type = 'application/octet-stream'
,
string $name = ''
,
boolean $isfile
= = true
)
組み込みイメージを持ったHTMLメッセージを送る場合は、 イメージを追加するこの関数を使用してください。
string $file -
画像ファイル名か、画像データ自身です。
string $c_type -
イメージかファイルの内容の種類です。
string $name -
画像のファイル名で、
もし$file
の内容が画像データの時のみ使用します。
boolean $isfile -
$file がファイル名かどうかです。
boolean - Returns TRUE on success,
PEAR_Error on failure.
| エラーコード | エラーメッセージ | 原因 | 解決 |
|---|---|---|---|
| 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. addHTMLImage() does no file locking, so this problem is not caused by competitve callings of this function. |
This function can not be called statically.