Creating a new article |
To create a new article create a new NntpArticle instance providing the From, Newsgroups and Subject header values in the constructor. You may then set the body using the NntpArticle#setBody method.
Example
// create new article NntpArticle artl = new NntpArticle("test@test.com","alt.test","Test post"); artl.setBody("This is only a test");
|