Net_NNTP::post()
Параметр
$subject - Subject of the message
$newsgroup - Post to this newsgroup
$from - EMail adress of sender
$body - Body of the message
$additional - String of headers to add
Throws
Таблица 50-1. Возможные значения PEAR_Error
Error code | Error message | Reason | Solution |
---|---|---|---|
NULL | "Not connected" | You forgot the set up a connection to a news server or the connection was already again closed. | Open a connection before using post(). Check the connection status before using post(). |
Заметка
Эта функция не должна вызываться статически.
Внимание |
post() doesn't care about character encoding of subject and body. Make sure to set correct headers, if you are using non ASCII-127 characters. |
Пример
Пример 50-1. Using post()
|
Пред. | Начало | След. |
Net_NNTP::min() | Уровень выше | Net_NNTP::prepareConnection() |