I have made a button to automatically write an email. Text automatically appears in the email body. It looks ugly though! There are no line breaks.
I tried putting <br /> into the places where I want a line break, but it doesn't work - I just get "<br />" appearing in my email text!
How can I have a line break appear in the body text of the email?
08-22-2010, 06:17 AM
if that doesn't work, paste your code and it will be easier to help out.
08-23-2010, 04:07 AM
<a href="mailto:email@example.comfirstname.lastname@example.org&subject=some subject&body=Some body text.%0D%0ASome new line.">create email</a> You can cause the body text to have a new line within the text you pre-populate by using the ascii characters for a carriage return (%0D) and line feed (%0A).
08-23-2010, 02:34 PM
Thanks you so much every one. Really helpful and amazing.
All working perfect.:thumbsup:
(just got to upload it in the next hour or two . . . )
08-23-2010, 05:29 PM
You are very welcome. Glad you got it working.
08-24-2010, 06:27 AM
you know by putting your email on the website itself you will get a load of spam, plus alot of users dont have mail clients setup on their pc's, it would probably best to setup a simple contact form.
08-24-2010, 11:44 AM
Yes, I do get lots of spam! I'm planning to make the email button an image, rather than text - would that help for this? Need to set up to take credit card payments really . . .
08-24-2010, 12:03 PM
When you specify a calculation, there's a button labeled with this character. You can click it to add the line break to your quoted text.