![]() |
ES Mailto: tutorial | ||||||
| |||||||
|
|
Mailto:Using a Mailto: is an easy way to allow for email feedback
A basic mailto:to open users default email program to send an email message to whoever@wherever.ac.uk<A href="mailto:whoever@wherever.ac.uk">Click here</a> produces:- Click here
Adding a copy (CC:) field:to send an email message to whoever@wherever.ac.uk and whoeverelse@wherever.ac.ukfollow the mailto: recipient's email address with ?cc=: e.g.
<A href="mailto:whoever@wherever.ac.uk produces:- Click here Substitute bcc for cc in above for bcc. Adding a Subject field:to send an email message with the subject "Whatever you want" to whoever@wherever.ac.ukfollow the mailto: recipient's email address with ?subject=. For spaces in the subject line you have to use %20 e.g.
<a href="mailto:whoever@wherever.ac.uk produces:- Click here
N.B. if using multiple options e.g. An example of several options at once:
to send an email message with the subject "Whatever you want"
<a href="mailto:whoever@wherever.ac.uk produces:- Click here
Adding a text to a Message:to send an email message with the subject "Whatever you want"and the text "Help I'm stuck in a web page" to whoever@wherever.ac.uk
<a href="mailto:whoever@wherever.ac.uk produces:- Click here
Automated Message Procedure:A Javascript form to do all the above is available here
JavaScript to include current URL in body:
<script language="JavaScript">
<!--
document.write ("<a href='mailto:w@w.ac.uk?subject=P&body=Re%20"+location.href+"'>Here</a>")
// -->
</script>
produces:-
Email address encoding page:This generates appropriate javascript (which most browsers should support) to present a version of a mailto: link which is impervious to harvesting by web crawlers.
Available offsite: Here
|