Subject Property

Subject Property

The Subject property specifies the subject of the message.


Property Subject as String
HRESULT get_Subject(BSTR* pVal);
HRESULT put_Subject(BSTR Val);


This property is also available as the urn:schemas:mailheader:subject and urn:schemas:httpmail:subject fields.

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

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

See Also


urn:schemas:mailheader:subject Field
subject Field