CNntpClient::CreateArticle Method  
 
INT CreateArticle();

The CreateArticle method creates a new article in the current newsgroup.

Parameters

None.

Return Value

If the method succeeds, the return value is the server result code. If the method fails, the return value is NNTP_ERROR. To get extended error information, call GetLastError.

Remarks

This method sends the POST command to the news server. Not all servers permit clients to post articles. The client application is responsible for generating the message headers as well as the body of the message. News articles conform to the same general characteristics of an email message.

The CloseArticle method must be called once the contents of the article has been written to the server.

Requirements

Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csnwsv10.lib

See Also

CloseArticle, GetCurrentDate, ListArticles, OpenArticle, OpenNextArticle, OpenPreviousArticle, Write