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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email Link and questions

Status
Not open for further replies.

Jimuniguy

Technical User
Mar 6, 2002
363
GB
Hi,

Ok, wanting to put an email link into my page, simple its:
Code:
<A href=&quot;mailto:me@me.com&quot;>Email Me</a>

Ok, questions are:

A) What code is needed to add in a subject line?
B) What code is needed to add something into the &quot;body&quot; of the email so half of the email is already written for the user?

I would normally look it up in google, but my minds going pearshape due to hayfever and i can't find the right keywords to find it.

Cheers

Jim
 
<a href=&quot;mailto:b@b.com?subject=subj&body=body&quot;>email</a>

notice the first delimiter after the email is a ? the following delimeters must be &, thats all you need to remember, oh yeah you may wanna url encode any text that may have spaces in
 
Hi Jim,

Take a look at thread215-78142

You can find more of this just with doing an keyword search on this forum. keyword: &quot;email&quot; or &quot;body&quot;

Get well soon!

Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
If you want a carriage return in the body you can add %0d

....&body=first line%0dsecond line%0d%0dthird line after empty line&quot;

Hope this helps,
Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Hi,

Cheers everyone, thats just what i need.

Back to ODing on the hayfever tablets!

James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top