EmailAttachmentCollection
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.watermark.common.ReadOnlyListBase, com.groupdocs.watermark.common.RemoveOnlyListBase
public class EmailAttachmentCollection extends RemoveOnlyListBase<EmailAttachment>
Represents a collection of attachments in an email message.
This collection contains the items of [EmailAttachment](../../com.groupdocs.watermark.contents/emailattachment) type.
| Method | Description |
|---|---|
| add(byte[] fileContent, String name) | Adds an attachment to the [EmailContent](../../com.groupdocs.watermark.contents/emailcontent). |
| removeFromDocument(EmailAttachment item) |
public final void add(byte[] fileContent, String name)
Adds an attachment to the [EmailContent](../../com.groupdocs.watermark.contents/emailcontent).
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fileContent | byte[] | The content of the file to be attached. |
| name | java.lang.String | The name of the file. |
public void removeFromDocument(EmailAttachment item)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | EmailAttachment |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.