Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

105
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda