Microsoft KB Archive/75958

= Mac Hyp: Adding Multiple Enclosures to a Message =

Article ID: 75958

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Mail Software Development Kit 3.0

-



This article was previously published under Q75958



SUMMARY
The AddEnclosure command in the Microsoft Mail version 3.0 HyperCard Software Development Kit (SDK) does not use Mail's File dialog box. It uses the standard Macintosh File dialog box, which adds only one file to the message at a time.

To add multiple enclosures, this command must be called multiple times.



MORE INFORMATION
The following script allows an unknown number of files to be added to a message: on mouseup put msmail (CreateMessage) into messageRef put 0 into count repeat put msmail (AddEnclosure, messageRef) if msmail (GetEnclosureInfo, messageRef, &quot;enclCount&quot;) = count then exit repeat add 1 to count end repeat This script brings up the standard Macintosh File dialog box until the Cancel button is clicked.

Keywords: KB75958

-

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

© Microsoft Corporation. All rights reserved.