Share via


MAILCOMPOSEFIELDS

Send Feedback

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

Pocket PC: Windows Mobile Version 5.0 and later
Smartphone: Windows Mobile Version 5.0 and later
OS Versions: Windows CE 5.01 and later
Header: cemapi.h

See Also

MAPI Structures | Messaging

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.