The following is an example of html email code. You can copy and paste this code into your own HTML documents - just change the values of the attributes as required.
The following code creates an email link - when your users click on the link, the browser should open the default email client with the "to" and "subject" fields already populated.
This code results in:
This code results in:
The following code creates an email link - when your users click on the link, the browser should open the default email client with the "to" and "subject" fields already populated.
Basic Email Link Code
To use this code, simply change the email address to suit your own context.
<a href="mailto:homer@example.com">Email Homer</a>
This code results in:
Email Homer
Add A Subject Line
You can automatically populate the subject line with the following code:
<a href="mailto:homer@example.com?subject=Doh!">Email Homer</a>
This code results in:
Email Homer