MAILCOMPOSEFIELDS
4/8/2010
The MAILCOMPOSEFIELDS structure describes the message that is composed using the MailComposeMessage function.
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 MAILCOMPOSEFIELDS structure.
- dwFlags
A combination of flags that provide additional information about the message. See MAPI Compose Field Flags for possible values.
- pszTo
The To address of the message.
- pszCc
The CC address of the message.
- pszBcc
The BCC address of the message.
- pszSubject
The Subject line 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 pszAttachments member.
- 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 dwFlags member.
- 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 MAILCOMPOSEFIELDS structure 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 |