MailEnvelopeObject Interface

Definition

Represents a custom e-mail message in a Microsoft InfoPath form.

public interface class MailEnvelopeObject : Microsoft::Office::Interop::InfoPath::MailEnvelope
[System.Runtime.InteropServices.Guid("096CD588-0786-11D1-95FA-0080C78EE3BB")]
public interface MailEnvelopeObject : Microsoft.Office.Interop.InfoPath.MailEnvelope
type MailEnvelopeObject = interface
    interface MailEnvelope
Public Interface MailEnvelopeObject
Implements MailEnvelope
Derived
Attributes
Implements

Examples

In the following example, the MailEnvelope property of the WindowObject object is used to set a reference to the MailEnvelope object.

<span class="label">MailEnvelopeObject</span> myEnv = thisApplication.ActiveWindow.<span class="label">MailEnvelope</span>;
myEnv.Visible = true;

Remarks

This type is a wrapper for a coclass that is required by managed code for COM interoperability. Use this type to access the members of the COM interface implemented by this coclass. For information about the COM interface, including a link to descriptions of its members, seeMailEnvelope2.

The MailEnvelope object provides a number of properties that can be used to programmatically create a custom e-mail message within the default e-mail editor, and it attaches the currently open InfoPath form to the message.

After the e-mail message is created, the default e-mail editor will display the e-mail message; users can then inspect and edit the e-mail message before sending it.

Note: The MailEnvelope object cannot be used to send the e-mail messages it creates; users must manually send the e-mail messages.

You can also use the ShowMailItem(String, String, String, String, String) method to programmatically create e-mail messages; users must manually send the e-mail messages.

You can also use the ShowMailItem(String, String, String, String, String) method of the UIObject object to programmatically create e-mail messages.

Properties

BCC

This member is a wrapper for a member of a COM interface that has been superseded by a later version. The later version of this interface implements all members of earlier interfaces and additional new members. For information about this member as it is implemented in the later interface, including usage, remarks, and examples, seeBCC.

(Inherited from MailEnvelope)
CC

This member is a wrapper for a member of a COM interface that has been superseded by a later version. The later version of this interface implements all members of earlier interfaces and additional new members. For information about this member as it is implemented in the later interface, including usage, remarks, and examples, seeCC.

(Inherited from MailEnvelope)
Subject

This member is a wrapper for a member of a COM interface that has been superseded by a later version. The later version of this interface implements all members of earlier interfaces and additional new members. For information about this member as it is implemented in the later interface, including usage, remarks, and examples, seeSubject.

(Inherited from MailEnvelope)
To

This member is a wrapper for a member of a COM interface that has been superseded by a later version. The later version of this interface implements all members of earlier interfaces and additional new members. For information about this member as it is implemented in the later interface, including usage, remarks, and examples, seeTo.

(Inherited from MailEnvelope)
Visible

This member is a wrapper for a member of a COM interface that has been superseded by a later version. The later version of this interface implements all members of earlier interfaces and additional new members. For information about this member as it is implemented in the later interface, including usage, remarks, and examples, seeVisible.

(Inherited from MailEnvelope)

Applies to