---
schema_version: "1"
id: 14520e507d3caa4adb40fb037e2ea30b29cb0235d011ed99e0bcf7224ccf2176
title: Set Parsing Text File Attachment as Body Message
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/email-connector/latest/email-attachment.md
canonical_url: https://docs.mulesoft.com/email-connector/latest/email-attachment
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 58c7b4cb21dcc4c002ea2dffe9a81000fe0f205177d9ab0f1c75dd9afe6e2d3f
description: MuleSoft Documentation Site
release: "1.8"
latest: true
---
---
product: Email Connector
version: 1.8
is-latest-version: true
keywords: anypoint, connectors, transports
---

# Set Parsing Text File Attachment as Body Message

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

When Anypoint Connector for Email (Email Connector) receives a message without a body and only an
attachment file with Content-Type as `text`, the attachment file is not processed as a separate
file. Instead, the file is included in the message body as plain text. Mule apps can use this
behavior to receive the data in the message body instead of as an attachment file.

To change the behavior of parsing attached text files when the file is the only content in the
message, set the system property `parsing.text.attachment.as.body` to either of these values:

- `true` (default)  
  Preserves the previous behavior and converts the text file attachment in the body message.

- `false`  
  Adds the attachment text file to the attachment list in the payload.

To learn how to set system properties in Anypoint Studio or for on-premises deployments, refer to
the [system properties](https://docs.mulesoft.com/mule-runtime/latest/mule-app-properties-system) documentation.

## Jakarta Mail System Properties

Email Connector uses the Jakarta Mail library internally. Thereby, you can change certain aspects of
connector behavior by changing specific Jakarta Mail system properties. Refer to the
[troubleshoot Jakarta Mail system properties](https://docs.mulesoft.com/email-connector/latest/email-troubleshooting#troubleshoot-jakarta-mail-system-properties)
section that covers some of the most used Jakarta Mail system properties.

For detailed information on these system properties, refer to the Jakarta Mail documentation.

## See Also

- [Introduction to Anypoint Connectors](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)

- [Email Connector Examples](https://docs.mulesoft.com/email-connector/latest/email-examples)

- [Salesforce Help](https://help.salesforce.com)
