InternetMailAttachments
Collection elements:
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:
Clear
Count
Delete
Get
Description:
Availability:
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, property Attachments