SQL PHP HTML ASP JavaScript articles and free scripts to download
 

E-Mail Links(MailTo)

Unlike normal hyperlinking, E-mail links are used for special purpose. E-Mail links are also know as "MailTo" links. This type of linking is mainly used when byclicking on the link should cause the user's computer to open its default mailing program with the specified address instead of linking to a new page. This can be done like this:

<A href="mailto:EmailAddress"> ... </A>

Example:

Mailto Link Example -- This links opens the default mailing program in your computer with the To Address admin@sitename.com

Code:

<a href="mailto:admin@sitename.com" link="red" alink="green"
 vlink="maroon"> Hyperlink Example </a>

Note: We can also specify the default subject that has to be mailed.

For example,
Mailto Link with Subject -- This link opens the default mailing program in your computer with To Address admin@sitename.com and subject defaulted to "Hello"

Code is here

<a href="mailto:admin@sitename.com?subject=Hello" link="green" alink="red" vlink="maroon">Mailto Link with Subject</a>

Note: This subject property is not supported by all browsers or email programs. Browsers/Email programs that doesn't support the subject will just ignore it.


Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked


Join Our Email List
Email:  
For Email Newsletters you can trust
List of HTML Tutorial
Hyper Links
HTML Tags
HTML Calendar
Tags on web page
Web Design