Fullscreen Image

This section covers Meridian Enterprise 2026. View other versions.

Attachments Object

The Attachments object is a property of the MailMessage and NewMailMessage objects that is used to manage the file attachments of email messages.

ClosedAttachments Object Properties

The Attachments object provides the properties described below.

ClosedAttachment Property

An object that represents an attachment to the message. Read-only.

Syntax

Attachment(Index) As IASMailAttachment

ClosedCount Property

Total number of attachments to the message. Read-only.

Syntax

Count As Long

ClosedAttachments Object Methods

The Attachments object provides the methods described below.

ClosedAdd Method

Adds an attachment to the current NewMailMessage object.

Syntax

Add(FilePath As String, [Name As String])
Parameters
Name Description

FilePath

The path of the file to attach to the current NewMailMessage object.

Name

Optional name of the attachment.

Return Value

An Attachment object.

ClosedRemove Method

Removes an attachment from the current NewMailMessage object.

Syntax

Remove(Index)
Parameters
Name Description

Index

A specific item in the attachments collection. Read-only.

ClosedRemoveAll Method

Removes all attachments from the current NewMailMessage object.

Syntax

RemoveAll()

Parameters

This method accepts no parameters.