Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Saiba mais

Esta discussão foi encerrada e arquivado. Faça uma nova pergunta se precisa de ajuda.

Problem with HTML code in a message

  • 1 resposta
  • 1 tem este problema
  • 1 visualização
  • Última resposta de Matt

more options

Hi everyone,

i'm trying to send an HTML table in a email using python, but everything is okey with that (i said it just to give info). This is the text of an example email i send with python (printed just before to be sent):

TABLE

COLUMN1COLUMN2
DATA1<a href=webexample.com>DATA2</a>
</br>

Everything is okey already but, when i read with Thunderbird some emails with tables, this tables are corrupted BY A WHITESPACE that wasn't at first in the html email code. As i seen, it happens when some tag like <td> is at the end of a html line and Thunderbird write the first half of the tag in one line and A WHITESPACE WITH THE OTHER HALF PART in the other line. Here is an example from the font code of an email in Thunderbird:

TABLE

<
COLUMN1COLUMN2
DATA1
Hi everyone, i'm trying to send an HTML table in a email using python, but everything is okey with that (i said it just to give info). This is the text of an example email i send with python (printed just before to be sent): <h1>TABLE</h1><table border="1"><tr><th>COLUMN1</th><th>COLUMN2</th></tr><tr><td>DATA1</td><td><a href=webexample.com>DATA2</a></td></table></br> Everything is okey already but, when i read with Thunderbird some emails with tables, this tables are corrupted BY A WHITESPACE that wasn't at first in the html email code. As i seen, it happens when some tag like <td> is at the end of a html line and Thunderbird write the first half of the tag in one line and A WHITESPACE WITH THE OTHER HALF PART in the other line. Here is an example from the font code of an email in Thunderbird: <h1>TABLE</h1><table border="1"><tr><th>COLUMN1</th><th>COLUMN2</th></tr><tr><td>DATA1</td>< td><a href=webexample.com>DATA2</a></td></table></br> As you can see, there is a whitespace at the start of the second line, corrupting the row of the table. Why this happen? Thank you.

Todas as respostas (1)

more options