Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mailto: Body formatting [duplicate]

Tags:

html

email

mailto

Possible Duplicate:
mailto link multiple body lines

Just a quick question. I am creating a website for a charity and they have a section on the site where people can give some suggestions for how they could raise more money for their cause. Their site is just plain HTML, JS and CSS to keep it light-weight. I added a mailto: that will allow people to send them an e-mail, but they would like some more information like their name and their contact details. I want to know if there is a way to format the body so that there are new lines:

name:  email: tel: postal address: 

thank you!

Here is what my mailto looks like now. any help or suggestions are welcome:

<a href="mailto:[email protected]?subject=Suggestions&body=Your%20suggestions%20are%20really%20important%20to%20us%20,thanks!">Send suggestions!</a> 
like image 727
TheLegend Avatar asked Jul 16 '12 15:07

TheLegend


2 Answers

Use %0D%0A for a line break in your body

  • How to enter line break into mailto body command (by Christian Petters; 01 Apr 2008)

Example (Demo):

<a href="mailto:[email protected]?subject=Suggestions&body=name:%0D%0Aemail:">test</a>​                                                                   ^^^^^^ 
like image 102
Curtis Avatar answered Sep 23 '22 12:09

Curtis


From the first result on Google:

mailto:[email protected]_t?subject=Header&body=This%20is...%20the%20first%20line%0D%0AThis%20is%20the%20second 
like image 34
Madara's Ghost Avatar answered Sep 24 '22 12:09

Madara's Ghost