I can’t break the lines in the body of the email. The text runs

Asked

Viewed 320 times

-1

This code creates a link that opens an email page with the subject and the body of the message configured. My problem is that I can not break the lines in the body of the message. I tried the various indications I found and the text is always running. I appreciate 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>
  • what is the code? See the way to How to ask a good question?

  • @First, you didn’t include the code. Edit your question by including it and explaining what you mean by breaking the lines in the body of the message. What directions have you tried?

  • <a href="mailto:[email protected]? body=I can’t break this line. &Subject=Information Request"> E-mail </a>

  • Yes, I indicated it but it was a little hidden. I intend to create several lines of text in the body of the email message. The problem is that the text appears to be running. Don’t let you break lines or create paragraphs

1 answer

1


Use the hexa %0D which is equivalent to Enter (Carriage Return) in 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.

  • Problem solved. Thank you very much. hug

  • @Joãocarneiro Don’t be so friend. If you found the answer useful, check . Big hug!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.