> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# email_attachment table

> Attachment info related to an email_item

## email\_attachment Table (495)

Attachment info related to an email\_item

## Fields

| Name                  | Description                                               | Type                               | Nullable |
| --------------------- | --------------------------------------------------------- | ---------------------------------- | :------: |
| email\_attachment\_id | Primary key                                               | PK                                 |    No    |
| email\_item\_id       | Id of the email\_item                                     | FK [email\_item](./email-item.mdx) |    Yes   |
| cid                   | The actual cid or the index of the mime part (an integer) | String(255)                        |    Yes   |
| description           | Attachment description                                    | String(255)                        |    Yes   |
| filename              | Filename of attachment                                    | String(255)                        |    Yes   |
| disposition           | Attachment disposition                                    | String(255)                        |    Yes   |
| type                  | Attachment type                                           | String(255)                        |    Yes   |
| encoding              | The attachment encoding                                   | String(255)                        |    Yes   |
| size                  | Attachment file size                                      | Int                                |    Yes   |

<img src="https://mintcdn.com/superofficeas/i6M2qZmvMNH7UTeu/media/loc/en/database/tables/email_attachment.png?fit=max&auto=format&n=i6M2qZmvMNH7UTeu&q=85&s=432cf0dd747479c9b3dc6a8370d4881d" alt="email_attachment table relationship diagram" width="475" height="59" data-path="media/loc/en/database/tables/email_attachment.png" />

## Indexes

| Fields          | Types | Description |
| --------------- | ----- | ----------- |
| email\_item\_id | FK    | Index       |

## Relationships

| Table                       | Description |
| --------------------------- | ----------- |
| [email\_item](./email-item) | Email data  |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [email_item table](/en/database/tables/email-item.md)
- [SuperOffice.WebApi.Data.AttachmentPreview](/en/api/reference/webapi/SuperOffice.WebApi.Data.AttachmentPreview.md)
- [SuperOffice.WebApi.Data.EMailAttachment](/en/api/reference/webapi/SuperOffice.WebApi.Data.EMailAttachment.md)
- [Create Default E Mail Attachment](/en/api/reference/restful/agent/email_agent/create-default-e-mail-attachment.md)
- [SuperOffice.WebApi.Agents.EMailAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.EMailAgent.md)
- [Create Forward Email](/en/api/reference/restful/agent/email_agent/create-forward-email.md)
