Title: Cannot get content-type: text/plain
Last modified: August 30, 2016

---

# Cannot get content-type: text/plain

 *  [cvc1968](https://wordpress.org/support/users/cvc1968/)
 * (@cvc1968)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/cannot-get-content-type-textplain/)
 * I am trying to get Contact Form 7 to send plain text emails with appropriate 
   line breaks. I have DE-selected the “use HTML content type” checkbox.
 * Upon doing that, the email arrives with no line breaks at all.
 * Message Body in CF7:
 *     ```
       From: [first-name] [last-name]
       Email: [email]
       Phone: [phone]
       Message Body: [message]
       ```
   
 * Message body received via email:
 *     ```
       From: FIrstname Lastname Email: cvc1968@test.com Phone: 3045551212 Message Body: Test plain text email
       ```
   
 * I’ve tried various methods of inserting linebreaks that I have found online (
   ie. \r\n, \n, \r, \\n) and all just display whatever I’ve typed.
 * In CF7:
 *     ```
       From: [first-name] [last-name] \r\n
       Email: [email] \r\n
       Phone: [phone] \r\n
       Message Body: [message] \r\n
       ```
   
 * The received email:
 *     ```
       From: FIrstname Lastname \r\n Email: cvc1968@test.com \r\n Phone: 3045551212 \r\n Message Body: Test plain text email line breaks using "rn" \r\n
       ```
   
 * So next I took a look at the raw source of the emails. In all cases, despite 
   the fact that I have DE-selected “Use HTML content type” the headers all contain:
   `
   Content-Type: text/html; charset=UTF-8`
 * So I tried adding the tex/plain header in the “Additional Headers Field” in CF7:
 *     ```
       Reply-To: [email]
       Content-Type: text/plain; charset=UTF-8
       ```
   
 * But it has no effect on the headers in the received message:
 *     ```
       Content-Type: text/html; charset=UTF-8
       From: XXXXX <do-not-reply@xxxxxx.org>
       Sender: XXXXX <do-not-reply@xxxxxx.org>
       To: carlvarney@xxxxxx.com
       Reply-To: cvc1968@test.com
       Subject: Message from xxxxxx Contact Form
       Date: Mon, 15 Jun 2015 15:24:14 +0000
       Content-Transfer-Encoding: quoted-printable
       Content-Disposition: inline
       MIME-Version: 1.0
       ```
   
 * What am I doing wrong and how can I get CF7 to send a plain text email with line
   breaks?
 * Thank you.
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/cannot-get-content-type-textplain/#post-6233315)
 * Try deactivating all other plugins and switching to the default theme.

Viewing 1 replies (of 1 total)

The topic ‘Cannot get content-type: text/plain’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [content-type](https://wordpress.org/support/topic-tag/content-type/)
 * [plain text](https://wordpress.org/support/topic-tag/plain-text/)

 * 1 reply
 * 2 participants
 * Last reply from: [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/cannot-get-content-type-textplain/#post-6233315)
 * Status: not resolved