# How to add line breaks in an emails?

**URL:** <https://forum.inductiveautomation.com/t/how-to-add-line-breaks-in-an-emails/27238>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [August 7, 2019, 4:01pm UTC](https://forum.inductiveautomation.com/t/how-to-add-line-breaks-in-an-emails/27238 "2019-08-07T16:01:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [August 7, 2019, 4:01pm UTC](https://forum.inductiveautomation.com/t/how-to-add-line-breaks-in-an-emails/27238/1 "2019-08-07T16:01:02Z")

</div>

I have a window with a text area that is prefilled in and isn’t changed by the user. I have tried adding line breaks to the preset text with both `\n\n` python style and by using `<HTML>Sentence one.<br><br>` style, however when I test these and receive them, there are no line breaks at all.

Is it possible it add line breaks to the email?

---

<div class="post-metadata">

**Author:** ![code\_skin](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@code\_skin](https://forum.inductiveautomation.com/u/code_skin)\
**Post date:** [August 7, 2019, 5:06pm UTC](https://forum.inductiveautomation.com/t/how-to-add-line-breaks-in-an-emails/27238/2 "2019-08-07T17:06:30Z")

</div>

Assuming you’re using **system.net.sendEmail** to send the email try playing with the html flag.

link: [sendEmail](https://docs.inductiveautomation.com/display/DOC79/system.net.sendEmail)

---

<div class="post-metadata">

**Author:** ![code\_skin](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@code\_skin](https://forum.inductiveautomation.com/u/code_skin)\
**Post date:** [August 7, 2019, 5:18pm UTC](https://forum.inductiveautomation.com/t/how-to-add-line-breaks-in-an-emails/27238/3 "2019-08-07T17:18:32Z")

</div>

It’s working for me without specifying the html flag.  
I noticed in the docs:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/ec3b763ea8b4d073054fb452361472ebe441b0bf.png)

Using \n in the text area is working as expected when sending emails.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [August 7, 2019, 5:37pm UTC](https://forum.inductiveautomation.com/t/how-to-add-line-breaks-in-an-emails/27238/4 "2019-08-07T17:37:29Z")

</div>

Ah though that does say it autodetects the HTML, I did learn on that page that apparently it should be `<HTML><BODY>Sentence one.<br><br>` instead of just the `<HTML>` tag. The `<BODY>` made it work. Thanks.
