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

193
Visualizações
can not send leaflet map in email

I add the map I developed with leaflet js to the body of the mail.

The body content of the mail is as follows;

<html lang='TR'><head><meta charset='utf-8'><link rel='stylesheet' href='https://unpkg.com/leaflet@1.7.1/dist/leaflet.css'><script src='https://unpkg.com/leaflet@1.7.1/dist/leaflet.js'></script><style>#map { width:100%;height:326px } body { margin:0;background:#fff!important } </style></head><body><div id='map'> </div> </body></html><script> var mymap = L.map('map').setView([41.03769103280778, 29.011782667101848], 13);var googleSat = L.tileLayer('http://{s}.google.com/vt/lyrs=s&x={x}&y={y}&z={z}',{maxZoom: 20,subdomains:['mt0','mt1','mt2','mt3']}).addTo(mymap);</script>

Mail goes, arrives in my mailbox, but there is no map, no images in the content. How do I overcome this?

any html content ( b - p - div) looks fine but not for map

Note: the mail content is empty, nothing comes up.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Leaflet is a JavaScript library. And email clients don't support JavaScript (mostly for security reasons). Your best bet is to send a image of your map in your email and add a link on it that redirects to a hosted page with your full page with Leaflet.

about 4 years ago · Juan Pablo Isaza Relatório
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