# Can't make a new line.

**URL:** <https://forum.wixstudio.com/t/cant-make-a-new-line/32063>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [October 13, 2020, 10:29am UTC](https://forum.wixstudio.com/t/cant-make-a-new-line/32063 "2020-10-13T10:29:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmedini37](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/bmedini37/32/24065_2.png) [@bmedini37](https://forum.wixstudio.com/u/bmedini37)\
**Post date:** [October 13, 2020, 10:29am UTC](https://forum.wixstudio.com/t/cant-make-a-new-line/32063/1 "2020-10-13T10:29:42Z")

</div>

So I am declaring a string as var in single quotation and I want to have this string be multiple lines, I tried using \n , \r , and   
 but non of them worked.

Note that the string declared later as const body is working just fine.

```javascript
import {sendEmail, sendEmailWithRecipient} from 'backend/email';

$w.onReady(function () {
  $w("#dataset2").onAfterSave(sendFormData);
});

function sendFormData() {
 if ($w("#dropdown1").value === 'Accepted') {
 var Letter = 'line <br> line';
  } else {
 var Letter = ' line <br> line';

}
 const subject = `Application Update`;
 const body = `
    \rDear ${$w("#dropdown1").value}
    \r ${Letter}
    \rSincerely,
    \ryours`;
 const recipient = $w("#dropdown2").value;
 
  sendEmailWithRecipient(subject, body, recipient)
    .then(response => console.log(response)); 
}

```

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [October 13, 2020, 1:20pm UTC](https://forum.wixstudio.com/t/cant-make-a-new-line/32063/2 "2020-10-13T13:20:17Z")

</div>

What service do you use for email sending? How does your backend function look like?

---

<div class="post-metadata">

**Author:** ![bmedini37](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/bmedini37/32/24065_2.png) [@bmedini37](https://forum.wixstudio.com/u/bmedini37)\
**Post date:** [October 13, 2020, 1:53pm UTC](https://forum.wixstudio.com/t/cant-make-a-new-line/32063/3 "2020-10-13T13:53:36Z")

</div>

Sendgrid  
The email sends just right and everything is working well, the only issue is that the new line formatting in var Letter is not working

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [October 13, 2020, 3:11pm UTC](https://forum.wixstudio.com/t/cant-make-a-new-line/32063/4 "2020-10-13T15:11:05Z")

</div>

@bmedini37 This is a question for Sendgrid. It’s not related to Corvid or Wix.  
You can try using   
 and in your sendgrid template use triple brackets {{{codeTempalte}}} instead of double {{.

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [October 13, 2020, 3:16pm UTC](https://forum.wixstudio.com/t/cant-make-a-new-line/32063/5 "2020-10-13T15:16:31Z")

</div>

P.S. I’m closing this thread as it’s not corvid-related.
