Enroll Course

100% Online Study
Web & Video Lectures
Earn Diploma Certificate
Access to Job Openings
Access to CV Builder



Online Certification Courses

HTML - Email Links

It is not really hard to put an HTML email link directly on your webpage and it can cause a lot of unnecessary spamming problems for your email account by people. There are people, who can run programs to reap these sorts of emails and later use them for spamming in various ways.

You can have an alternative choice to facilitate people to send you emails. One option might be to use HTML forms to gather user data then use PHP or CGI script to send an email.

HTML Email Tag

HTML <a> tag provides you the choice to specify an email address to send an email. While using <a> tag as an email tag, you'll use mailto:email address alongside the href attribute. The following is the proper syntax for using mailto instead of using http.

<a href = "mailto:[email protected]">Send Email</a>

This code above will result in the following link in which you can actually use to send an email.

Send Email 

If a user clicks on the link, it will launch the default Email client (such as Gmail, Outlook Express, etc. ) installed on the user's computer. there's another risk to use this feature to send emails because if the user doesn't have an email client installed on their computer then it might not be possible to send an email.

Default Settings

You can actually specify a default email subject and email body alongside your email address. The following is an example of how to specify a default subject and body.

<a href = "mailto:[email protected]?subject = Feedback&body = Message">
Send Client Feedback
</a>

This code above will result in the following link in which you can actually use to send an email.

Send Client Feedback
Corporate Training for Business Growth and School