Microsoft KB Archive/58592

= Mac Hyp: AddEnclosure Adds an Enclosure to a Message =

Article ID: 58592

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Mail Software Development Kit (SDK) for HyperCard 2.0
 * Microsoft Mail Software Development Kit 3.0

-



This article was previously published under Q58592



SUMMARY
To add the file named fileName to a specified message as an enclosure, use the following syntax:   msmail (addEnclosure, messageRef [,fileName]) The filename &quot;fileName&quot; can be a complete path (for example, &quot;Hard Disk:Documents:Report&quot;) or a partial path (for example, &quot;:OtherStacks:Demo&quot;). Partial paths start from the folder that contains HyperCard.

&quot;messageRef&quot; is a reference to a selected message obtained by making a call to the msmail function using a parameter that returns a message reference.

If no filename is given, the standard Macintosh Open File dialog box is presented, and you can select the file that is sent.

Microsoft Mail version 2.00 does not support adding multiple enclosures, but Mail version 3.00 does. To add multiple enclosures, make multiple calls to AddEnclosure.

This information is taken from the &quot;Microsoft Mail HyperCard Interface Documentation.&quot;

Keywords: KB58592

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.