Skip to main content
When someone sends an email with file attachments, the adapter makes them available on message.raw.attachments. The adapter does not download the attachment content.
  • An attachment of an email.received email has filename and contentType.
  • An attachment of an inbox email has id, filename, size and contentType. The inbox API does not return the MIME type, so contentType is always application/octet-stream.

Attachment shape

Detecting and processing attachments

For more on receiving email attachments outside the Chat SDK, see Receiving Attachments.

Try it yourself

Attachments Example

Detects attachments and replies with a summary