Newsgroups Property

Newsgroups Property

The Newsgroups property is the list the newsgroup recipients of the message.


Property Newsgroups as String
HRESULT get_Newsgroups(BSTR* pVal);
HRESULT put_Newsgroups(BSTR Val);


This property is also available as the urn:schemas:mailheader:newsgroups field.

The string in the Newsgroups property can represent a single newsgroup or multiple newsgroups. A newsgroup name is a set of words concatenated by periods, as shown in the following example:


In a list of multiple newsgroups, commas separate the names of the newsgroups, as follows:


A newsgroup name cannot contain a comma, and only existing newsgroups should be specified. If a newsgroup with a particular name does not exist, posting to that name does not cause the newsgroup to be created.

The Newsgroups property is required on news messages. If you do not set the Newsgroups property before calling the IMessage.Post method, an error is returned.

Responses to this message are posted to the same newsgroups unless the IMessage.FollowUpTo property is set.

The default value of the Newsgroups property is an empty string.