Double quotation mark for mail body

Hi,
how to correctly use double quotation mark in JavaScipt for email body?
obrazek

return [
  {
  	"Subject": "Pgghfgh",
    "Importance": "Low",
    "From": [{
      "Name": "dsdfgdfd",
      "Address": "dfdft@fdfs.com"
    }],
    "To": [{
      "Name": "gdgdgfd",
      "Address": ".dfdgdf@dgfdgd.com"
    }],
    "BodyType":	"html",
    "Body": "<img src="pic_trulli.jpg" alt="Italian Trulli">",
    "Attachment": [{
      "Name": inputData[0].Filename,
      "Content": inputData[0].Data
    }]
  }
];

Hi,

you can suppress meaning of " char with using \ in front:

return [
  {
  	"Subject": "Pgghfgh",
    "Importance": "Low",
    "From": [{
      "Name": "dsdfgdfd",
      "Address": "dfdft@fdfs.com"
    }],
    "To": [{
      "Name": "gdgdgfd",
      "Address": ".dfdgdf@dgfdgd.com"
    }],
    "BodyType":	"html",
    "Body": "<img src=\"pic_trulli.jpg\" alt=\"Italian Trulli\">",
    "Attachment": [{
      "Name": inputData[0].Filename,
      "Content": inputData[0].Data
    }]
  }
];

Tomas

Hi, I try \", but it didn’t work in the final html representation, html was broken.
Then i tried ' and it worked great
<a href='https://integray.com/'>via integray</a>

Here is my result, that I am proud of, it was fun :smile:
I use JS mapper and Seznam SMTP Sender Connector.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.