## MailAttachment interface

Email attachment definition. Compatible with nodemailer Mail.Options.

**Signature:**

```typescript
export interface MailAttachment
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [content?](/content/docs/sdk/core.mailattachment.content) | `readonly` | string | _(Optional)_ String, Buffer or a Stream contents for the attachment |
| [contentType?](/content/docs/sdk/core.mailattachment.contenttype) | `readonly` | string | _(Optional)_ optional content type for the attachment, if not set will be derived from the filename property |
| [filename?](/content/docs/sdk/core.mailattachment.filename) | `readonly` | string \| false | _(Optional)_ filename to be reported as the name of the attached file, use of unicode is allowed. If you do not want to use a filename, set this value as false, otherwise a filename is generated automatically |
| [path?](/content/docs/sdk/core.mailattachment.path) | `readonly` | string | _(Optional)_ path to a file or an URL (data uris are allowed as well) if you want to stream the file instead of including it (better for larger attachments) |

- [MailAttachment interface](/content/docs/sdk/core.mailattachment#mailattachment-interface/index.html)
- [Properties](/content/docs/sdk/core.mailattachment#properties/index.html)
