Attachments
Methods
Add(Source, Type, Position, DisplayName)
Creates a new attachment in the Attachments collection.
Source
The source of the attachment. This can be a file (represented by the full file system path with a file name)
Type
Usually 1, The attachment is a copy of the original file and can be accessed even if the original file is removed.
Position
This parameter applies only to email messages using the Rich Text format: it is the position where the attachment should be placed within the
body text of the message.
A value of 1 for the Position parameter specifies that the attachment should be positioned at the beginning of the message body. A value 'n' greater than the number of characters in the body of the email item specifies that the attachment should be placed at the end.
NB: A value of 0 makes the attachment hidden.
DisplayName
This parameter applies only if the mail item is in Rich Text format and Type is set to olByValue (1) : the name is displayed in an Inspector object for the attachment or when viewing the properties of the attachment. If the mail item is in Plain Text or HTML format, then the attachment is displayed using the file name in the Source parameter.
Item
Returns an Attachment object from the collection.
Remove
Removes an object from the collection.
Properties
Parent
Returns the parent Object of the specified object. Read-only
GetEnumerator
Returns an enumerator that iterates through the collection