Donate SIGN UP

html send an email

Avatar Image
sykosat2004 | 20:36 Wed 12th Apr 2006 | Technology
5 Answers
hey does anyone know the source code for clicking on an email address and it opens an email in your client. Thanks
Gravatar

Answers

1 to 5 of 5rss feed

Best Answer

No best answer has yet been selected by sykosat2004. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
The basic way is as in the answer above

please contact: <A target='_blank' href=mailto:[email protected]>This text appears on the webpage</A>

But this can be extended to pre-insert the subsect line and even start off the email itself like this:

please contact: <A target='_blank' href=mailto:[email protected] ?subject=Website%20query&amp;body=Dear%20Joe>This text appears on the webpage</A>

Notice that spaces are replaced by their hexadecimal equivalents (%20). In this example, the email subject will contain 'Website query?' and the email will start off 'Dear Joe'

The section marked 'This text appears on the webpage' is whatever text you want the viewer to see on the webpage.

Oh dear, the AnswerBank robots have messed around with that code. In both examples you need to delete the target='_blank' bit and in the first example replace the &g t; with the greater-than sign (>).

Keep it simple. Assign your webpage text this: mailto:[email protected]


Easy.

Question Author
thanks everyone great answers just what i was looking for. cheers

1 to 5 of 5rss feed

Do you know the answer?

html send an email

Answer Question >>