Microsoft KB Archive/62131

= Mac Hyp: Forwarding a Message and Its Enclosures =

Article ID: 62131

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 Q62131



SUMMARY
The following command returns a reference number to a new message that is a copy of the message in &quot;originalMessage&quot;: msmail(createForward, originalMessage) => messageRef &quot;originalMessage&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, such as getMessageListField.

Before sending the copy of the message, the message must be addressed with the addRecipients call. Any enclosure or enclosures of the original message will be included with the new message. They can be removed in Mail version 3.00 only with removeEnclosure.

To pre-pend text, retrieve the current body with getBody, and replace it with addBody:

put msmail(getmessage, messageType, messageID) in messageRef

put msmail(getBody, messageRef) into oldBody

put &quot;This forwarded message matches your interests&quot; into newBod

put msmail(createForward, messageRef) into newMessRef

put msmail(disposeMessage, messageRef)

put msmail(addBody, newMessRef, newBod& return &oldBody)

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

Keywords: KB62131

-

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

© Microsoft Corporation. All rights reserved.