InternetMailAttachments

Collection elements:

InternetMailAttachment
Iteration through collection using For each ... In ... Do operator is available to object. Collection items are retrieved during iteration.
Access to collection item is possible using [...] operator. Collection item index (starting from 0) is passed as an argument.

Methods:

Add
Clear
Count
Delete
Get

Description:

Mail attachments collection.

Availability:

Thin client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Example:

// Create message
Message = New InternetMailMessage;

// Add file into the attachment
Message.Attachments.Add("c:\MyPhoto.jpg", "My photo");

// Add binary data into the attachment
Data = PictureLib.Magnifier.GetBinaryData();
Attachment = Message.Attachments.Add(Data, "Picture 'Lens'");

// Add other message into the attachment
AttachMessage = New InternetMailMessage;
Message.Attachments.Add(AttachMessage);

See also:

InternetMailMessage
InternetMailMessage, property Attachments

    

1C:Enterprise Developer's Community