The first time I asked a question here (I did a search before publishing), so please bear with possible errors made at my end.
To the problem: I am currently working on a site with google sites. Made some forms there, and I add a script to these forms to get the information that was sent there by email, after the form was submitted and saved in a spreadsheet, which works very well, but the message inside the email is pretty confused.
All expressions "\ n" in the code are simply ignored. I got the code base from www.labnol.org and edited it a bit.
To get started, the code:
function sendFormByEmail(e) {
As you can see, I tried a lot to place \ n in different places as an alternative, although it is ignored no matter where I place it.
The original loop looked like this:
for(var i in headers) message += headers[i] + ' = '+ e.namedValues[headers[i]].toString() + "\n\n";
Before I made some changes to the code, it worked perfectly. But even if I did not touch these lines or other parts of the code that contribute to receiving the message, \ n stops working. I tried to fix it all the time (as I mixed up \ n to post above the show), but to no avail.
So now I'm trying to find a way to fix them, or at least workaround and hope that any of you can know what is happening with \ n or how to make them work again.
Thanks in advance.
ps: if you need more info on this just let me know