Mail_Mime::setHTMLBody()

Mail_Mime::setHTMLBody() -- set HTML part

Synopsis

require_once 'Mail/Mime.php';

boolean setHTMLBody (string $data [, boolean $isfile = FALSE])

Description

Sets the HTML part of a message

Parameter

Return value

boolean - Returns TRUE on success, PEAR_Error on failure.

Throws

Table 36-1. Possible PEAR_Error values

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. setHTMLBody() does no file locking, so this problem is not caused by competitve callings of this function.

Note

This function can not be called statically.

See

Mail_Mime::setTxtBody()