boolean setTxtBody (
, boolean $isfile
Sets the plain text part of a message
string $data- The text to set or, if
$isfileis TRUE a valid filename. An URL as argument is not allowed.
boolean $isfile- If TRUE, the content of given file
$datais used as message text.
boolean - Returns TRUE on success,
PEAR_Error on failure.
|Error code||Error message||Reason||Solution|
"File is not readable
||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.|
"Could not open
||The file is already opened and exclusivly locked by another application.||In the most cases a programm opens the file for writing. setTxtBody() does no file locking, so this problem is not caused by competitve callings of this function.|
This function can not be called statically.