I can not break the lines in the body of the email. The text goes out [closed]

-2

This code creates a link that opens an email page with the subject and message body configured. My problem is that I can not break the lines in the message body. I tried the various indications that I found and the text always goes out. Thanks for your help.

Body and subject completed:

<a href="mailto:[email protected]?body=Não consigo partir esta linha.&subject=Pedido de Informações"> E-mail </a>
    
asked by anonymous 11.01.2018 / 01:07

1 answer

0

Use the hexa %0D which is equivalent to Enter ( carriage return ) at ASCII table .

                                                      ↓
<a href="mailto:[email protected]?body=Não consigo partir%0Desta linha.&subject=Pedido de Informações"> E-mail </a>

This will make a line break in the position you want.

    
11.01.2018 / 01:59