Can't make a new line.

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.

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)); 
}

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

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

@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 {{.

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