Enclosures Property
Applies To
Mailer object.
Description
Returns or sets the enclosed files that are attached to the document mailer, as an array of strings, with each string indicating the path of a file to attach as an enclosure. Relative paths are acceptable; they're assumed to be based on the current folder. Available only in Microsoft Word for the Macintosh, with the PowerTalk mail system extension installed. Read/write Variant.
Example
This example sets up the Mailer object for the active document and then sends the document.
With ActiveDocument
.HasMailer = True
With .Mailer
.Subject = "Here is the document"
.ToRecipients = Array("Jean")
.CCRecipients = Array("Adam", "Bernard")
.BCCRecipients = Array("Chris")
.Enclosures = Array("TestFile")
End With
.SendMailer
End With