Important: |
---|
This is retired content. 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 content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The MAILCOMPOSEFIELDSstructure describes the message that is composed using the MailComposeMessagefunction.
Syntax
struct { DWORD cbSize; DWORD dwFlags; LPCTSTR pszTo; LPCTSTR pszCc; LPCTSTR pszBcc; LPCTSTR pszSubject; LPCTSTR pszBody; LPCTSTR pszAttachments; UINT cAttachments; LPCTSTR pszAccount; LPCTSTR pszMsgClass; } MAILCOMPOSEFIELDS; |
Members
- cbSize
-
Size in bytes of MAILCOMPOSEFIELDSstructure.
- dwFlags
-
A combination of flags that provide additional information about the message. See MAPI Compose Field Flagsfor possible values.
- pszTo
-
The Toaddress of the message.
- pszCc
-
The CCaddress of the message.
- pszBcc
-
The BCCaddress of the message.
- pszSubject
-
The Subjectline of the message.
- pszBody
-
The text body of the message.
- pszAttachments
-
NULL-separated list of attachment file names.
- cAttachments
-
The number of attachments in the pszAttachmentsmember.
- pszAccount
-
The account used to create the message. It can be specified by the account name or the transport name, depending on the flag set in the dwFlagsmember.
- pszMsgClass
-
The name of the message class used to create the message. The default message class is used if this member is NULL.
Remarks
Not all fields in the MAILCOMPOSEFIELDSstructure are always applicable. For example, an SMS message cannot have attachments.
Unused fields are ignored by the targeted form.
For the text address fields pszTo, pszCc, and pszBcc, you can use a semicolon (;) to delimit multiple addresses. You can also use long-forms of e-mail addresses. For example, "John Doe <johndoe@microsoft.com>".
Requirements
Header | cemapi.h |
Windows Mobile | Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later |