Creating a Message Subject
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
The subject of a message, PR_SUBJECT (PidTagSubject), is an optional property, used to summarize the intent of a message. If you choose to set it, make it a character string 128 bytes or less. The 128 byte limit is not a limit imposed by MAPI; it is a limit imposed by some message store providers. To ensure interoperability with providers that do impose it, limit subjects to 128 bytes.
Be aware that some message store providers do not allow PR_SUBJECT to be written to a stream with the IStream interface.
Do not set PR_SUBJECT_PREFIX (PidTagSubjectPrefix); this property is set only on replies and forwarded messages.