Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

107
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda