Share via


Document.MailEnvelope Property

Publisher Developer Reference

Returns an MsoEnvelope object that represents an e-mail header for a publication.

Syntax

expression.MailEnvelope

expression   A variable that represents a Document object.

Return Value
MsoEnvelope

Remarks

The MailEnvelope property is only accessible if the EnvelopeVisible property has been set to True.

Example

This example sets the comments for the e-mail header of the active publication. This example assumes that the EnvelopeVisible property has been set to True.

Visual Basic for Applications
  Sub HeaderComments()
    ActiveDocument.MailEnvelope.Introduction = _
        "Please review this publication and let me know " & _
        "what you think.  I need your input by Friday." & _
        "  Thanks."
End Sub

See Also