Mail_Mime::addHTMLImage()

Mail_Mime::addHTMLImage() -- add image to message

Synopsis

require_once 'Mail/mime.php';

boolean addHTMLImage (string $file, string [$c_type = 'application/octet-stream'] [, string $name = '' [, boolean $isfile = TRUE]])

Beschreibung

If sending an HTML message with embedded images, use this function to add the image.

Parameter

Rückgabewert

boolean - Gibt bei Erfolg TRUE zurück, bei einem Fehler ein Objekt der Klasse PEAR_Error.

Fehler-Meldungen

Tabelle 47-1. Mögliche Fehler-Arten

Error codeError messageReasonSolution
NULL „File is not readable file_name The file was not found or the script has not enough rights to access the file. Check the file name and path. Check user and file permissions.
NULL „Could not open 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.

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.

Siehe auch

Mail_Mime::setHTMLBody()