Mail_Mime::setTxtBody()

Mail_Mime::setTxtBody() -- set plain text part

Synopsis

require_once 'Mail/mime.php';

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

Описание

Sets the plain text part of a message

Параметр

Возвращаемое значение

boolean - Возвращает TRUE при удаче и PEAR_Error в обратном случае.

Throws

Таблица 47-1. Возможные значения PEAR_Error

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

Заметка

Эта функция не должна вызываться статически.

См. также

Mail_Mime::setHTMLBody()


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ