Click to See Complete Forum and Search --> : Create subject for an email message?


screaming_banjo
01-09-2004, 05:24 AM
Hi

At the moment, I have this code as an email link to put the subject into an email message:

<a class="email" href="mailto: myemail@work.co.uk?subject=Training%20Request">

This will put my email address and a subject in but I would also like to add text into the body of the email message, so that the process is more or less automatic for the user.

Can anyone advise me how to put text into the body of an email.

Thanks a lot!

Khalid Ali
01-09-2004, 06:58 AM
just apend to the exisiting string
&body=whatever you havein body will go here"

screaming_banjo
01-09-2004, 08:03 AM
Kind of obvious - when you know how!!

One last question, I would like to put new lines in (it's about 3 lines of text I want to put in), how do I get a new line in?

I've tried \n (a guess!) but no luck. I should probably have had this in my first post, it didn't really occur to me till I put your advice into practise!!

Thanks in advance!

hammerslane
01-09-2004, 09:05 AM
put %0d and it should create a non breaking space

screaming_banjo
01-09-2004, 09:45 AM
Thanks a million, it's working like a charm now!!