Table of contents
TOC
Collapse the table of content
Expand the table of content

EmailMergeEnvelope.To Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Gets or sets the MailMergeDataField object that represents the data-source field (column) that lists the e-mail addresses of recipients of the merged e-mail message. Read/write.

Syntax

expression. To

_expression_A variable that represents an EmailMergeEnvelope object.

Return Value

MailMergeDataField

Remarks

You must make certain that you assign the correct data-source field (the one that represents e-mail addresses) to the To property. You can use the following line of code, which gets the value of the Name property of the MailMergeDataField object to which To is assigned, to ensure that you make the correct assignment:

Debug.Print ThisDocument.MailMerge.EmailMergeEnvelope.To.Name

For an example of how to set the To property value, see the EmailMergeEnvelope object topic.

© 2018 Microsoft