---
schema_version: "1"
id: c4bb6828db67deea72f4964c49e9cd5b61ff79c1a761b5ff118cf222755a1560
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/1.7/email-attachment.md
canonical_url: https://docs.mulesoft.com/email-connector/1.7/email-attachment
source_site: docs.mulesoft.com
content_type: documentation
content_hash: eb7b9f3a71ce34c0ce3300f2fa9af007f15a13097b4bb256e833ad774432f770
description: MuleSoft Documentation Site
release: "1.7"
latest: false
---
---
product: Email Connector
version: 1.7
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/1.7/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/1.7/email-examples)

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