MailEnvelope Property

Microsoft Publisher Visual Basic

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

expression.MailEnvelope

expression    Required. An expression that returns one of the objects in the Applies To list.

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.

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