This documentation is archived and is not being maintained.

DocumentBase.MailEnvelope Property

 

Gets an MsoEnvelope that represents an e-mail header for a document.

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

public MsoEnvelope MailEnvelope { get; }

Property Value

Type: Microsoft.Office.Core.MsoEnvelope

An MsoEnvelope that represents an e-mail header for a document.

The following code example adds text to the e-mail header of a document and then displays the e-mail header. To use this example, run it from the ThisDocument class in a document-level project.

private void DocumentMailEnvelope()
{
    this.MailEnvelope.Introduction = "Please review " +
    "this document and let me know what you think.";
    this.ActiveWindow.EnvelopeVisible = true;

}
Return to top
Show: