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?
Aucun commentaire:
Enregistrer un commentaire