Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

100
Views
jquery html page body send mail

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

enter image description here

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!