MailSlurp JS

Globals / UploadAttachmentOptions

# Interface: UploadAttachmentOptions

Options for uploading files for attachments. When sending emails with the API that require attachments first upload each attachment. Then use the returned attachment ID in your SendEmailOptions when sending an email. This way you can use attachments multiple times once they have been uploaded.


interface UploadAttachmentOptions

# Hierarchy

  • UploadAttachmentOptions

# Index

# Properties

# Properties

# base64Contents

Optional base64Contents: string

Defined in src/generated/api.ts:3710 (opens new window)

Base64 encoded string of file contents. Typically this means reading the bytes or string content of a file and then converting that to a base64 encoded string.

memberof UploadAttachmentOptions

# contentType

Optional contentType: string

Defined in src/generated/api.ts:3716 (opens new window)

Optional contentType for file. For instance application/pdf

memberof UploadAttachmentOptions

# filename

Optional filename: string

Defined in src/generated/api.ts:3722 (opens new window)

Optional filename to save upload with. Will be the name that is shown in email clients

memberof UploadAttachmentOptions