I have a nice long page that I am html coding.
My goal is to take the body codes of this page and integrate it into the mail content I will send.
For this, I first assign the body code of my page to a variable.
var body = $("body").html();
I'm sending this variable to a local web service that I created.
$.getJSON("MailSend?mail_adres=example@gmail.com&text="+body+"", function (data3) {
console.log("mail send");
});
When I print the body variable I created to the console, there is no problem, the same is received, but when I send it to json, the same does not come and therefore mail cannot be sent.
What should I do for this?
Description of the photo below;
At the top console.log(body) works, all html looks pure and neat.
The same html code does not go to the json web service correctly in the cursor held at the bottom, Mailsend service does not work