Creating a hyperlink to an email address is easy, and can be done by hand in any web design program or text editor. When a user clicks on the hyperlink, instead of being directed to a new webpage, her default email program will open a new message composition window, with the linked email address already inserted into the "To" field. You can also add a string to the link code that will automatically create text for the email's "Subject" field, as well as a string that will generate default message body text.
Open the file where you'd like to insert the email hyperlink.
Create a hyperlink with the "mailto" attribute by typing the following code. Replace the text inside the parentheses with your own information. (Do not use the parentheses.)
<a href="(mailto:name@anydomainname.com)">(any text you would like to link to the email address)</a>
Specify a default subject (if desired) by adding the string ?subject= to the link, as follows.
<a href="(mailto:name@anydomainname.com)?subject=(any subject you'd like to automatically appear)">(any text you would like to link to the email address)</a>
Add default text, which will appear in the body of the new email (if desired), by adding the &body= string to the link, as follows:
<a href="(mailto:name@anydomainname.com)?subject=(any subject you'd like to automatically appear)&body=(the text you'd like to automatically appear in the message body)">(any text you would like to link to the email address)</a>
Save the file, and if the link is meant for a webpage, upload the saved version of the file to your web server or host.
Open the file where you'd like to insert the email hyperlink.
Create a hyperlink with the "mailto" attribute by typing the following code. Replace the text inside the parentheses with your own information. (Do not use the parentheses.)
<a href="(mailto:name@anydomainname.com)">(any text you would like to link to the email address)</a>
Specify a default subject (if desired) by adding the string ?subject= to the link, as follows.
| Hyperlink to Email Address |
Add default text, which will appear in the body of the new email (if desired), by adding the &body= string to the link, as follows:
<a href="(mailto:name@anydomainname.com)?subject=(any subject you'd like to automatically appear)&body=(the text you'd like to automatically appear in the message body)">(any text you would like to link to the email address)</a>
Save the file, and if the link is meant for a webpage, upload the saved version of the file to your web server or host.


04:37
Faizan
Posted in: