ItemAttachmentAdd()

Adds an attachment to an item. Using X00 will work for the messageID if the item view is showing.

Token ID

AFTKN_ITEM_ATTACHMENT_ADD or 665

Syntax

VOID ItemAttachmentAdd(ANSISTRING MessageID; 
                        ENUM AttachmentClass; 
                        ANSISTRING AttachmentName; 
                        [ANSISTRING AttachmentDisplayname])

Parameters

MessageID As ANSISTRING

Unique item identifier, returned by ItemMessageIDFromView().

AttachmentClass As ENUM

Type of attachment:

  • 114 Attach Class File
  • 115 Attach Class Message
AttachmentName As ANSISTRING

Name of an attachment.

AttachmentDisplayName As ANSISTRING

(Optional) Name displayed in the Attach File box.

See Also