MailEnvelopeObject Interface
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a custom e-mail message in an InfoPath form.
public interface class MailEnvelopeObject : Microsoft::Office::Interop::InfoPath::SemiTrust::MailEnvelope
[System.Runtime.InteropServices.Guid("096cd588-0786-11d1-95fa-0080c78ee3bb")]
public interface MailEnvelopeObject : Microsoft.Office.Interop.InfoPath.SemiTrust.MailEnvelope
type MailEnvelopeObject = interface
interface MailEnvelope
Public Interface MailEnvelopeObject
Implements MailEnvelope
- Attributes
- Implements
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;
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, seeMailEnvelope.
Using the members of the MailEnvelope interface provides compatibility with InfoPath 2003. To use new members that were added to the MailEnvelope2 object model in InfoPath 2010, you must cast the object returned by the MailEnvelope property of the WindowObject to the MailEnvelope2 type. For more information, see How to: Use Object Model Members That Are Not Compatible with InfoPath 2003.
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.
BCC |
Gets or sets the blind carbon copy (BCC) value used in MailEnvelopeObject that is associated with a WindowObject object. (Inherited from MailEnvelope) |
CC |
Gets or sets the carbon copy (CC) value used in the MailEnvelopeObject object that is associated with a WindowObject object. (Inherited from MailEnvelope) |
Subject |
Gets or sets the subject value used in the MailEnvelopeObject object that is associated with a WindowObject object. (Inherited from MailEnvelope) |
To |
Gets or sets the send-to value used in the MailEnvelopeObject object that is associated with a WindowObject object. (Inherited from MailEnvelope) |
Visible |
Gets or sets the visibility of the custom e-mail message created with a MailEnvelopeObject object that is associated with a WindowObject object. (Inherited from MailEnvelope) |
Prodotto | Versioni |
---|---|
InfoPath external automation | Latest |