Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mailto: body field

Status
Not open for further replies.

chrisparr21681

Programmer
Nov 18, 2002
17
GB
i am trying to produce an email with a link in to automatically fill in the subject line and the body field.
so far i have

mailto:test@test.com?subject=test&body=this is the bit i need help with


i need to be able to format the body field...i have tried using basic html commands like <br> but these just appear as written in the email....please help..
 
Could the problem be that you're using spaces in the body text? That won't fly.

<a href=&quot;mailto:<email>?subject=<subject>&body=<body>&quot;>email</a>

You can use the %20 character code to embed spaces or do a find/replace to make your life easier.
 
Hi

I have the same question as Chrisparr regarding <BR>'s. I know how to add a 'horizontal' continuous line of text to the body of an email automatically.

I do this as follows:
<a href="mailto:test@test.com?subject=Test&body=This is the body of the email">

The text appears as follows in one line in the BODY:
"This is the body of the email"


But how would you be able to add a 'break' in the text?

Example, how would I be able to make the BODY appear as follows:

"This
is
the
body
of
the
email"

Where essentially 'breaks' (<BR>) are after each word.

Thank you for any help. Much appreciated.

MHUK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top