|Table of contents|
A simple form can be created that will sent the results to an email address.However, use this method with caution. Unless the user's browser has an email client attached this probably will not work.
Objective Using Mailto in a form
By the end of this page you will be able to:
Simple mailto redirect
To redirect a user to an email form if they have an email client that works with their browser add the following code in the link
which in the browser displays
You can email the editor from here
A fuller version;
- cc = copy to
- bcc = blind copy
- subject = subject of email
- body = email contents
Simple form mailto
A simple form can be created that will sent the results to an email address. For example
Displaying this in your browser will show...
Clicking [Submit] may create the following email..
Unfortunately mailto is notoriously unreliable.....
When Mailto forms don’t work
Mailto forms rely on two things:
- The customer's system must have a default email client
- The customer's Web browser must be able to connect to that email client
If you create a page with a mailto form, and your customer doesn't have an email client on their system, the mailto form won't work. If their Web browser can't connect to the email client, the mailto form won't work.
The biggest problem is that this issue depends on many factors, including:
- Operating system
- Web browser and version
- Email client and version
- Other factors(?)
Setting your browser options to work with a web based email client
It is possible to test a mailto (e.g. testing that the [Submit] button on a form). Browsers will usually allow you to reset the default mail client in their options. The following examples show you how to change the default settings in various Browsers.
- For Windows Live Hotmail and Windows Live
- For Gmail.
- There is no email client facility, you will need to add an extension. For example:
An alternative to using the mail system is to use Google Docs form. Create a form in Google docs which allows you to update the data to a spreadsheet
- Kyrnin, J. (2008) When Mailto Forms Don’t Work. Retrieved March 17, 2008 from http://webdesign.about.com/cs/forms/a/aamailtobroke.htm
- Make Gmail the Default Application for mailto Links in Google Chrome (2011) In HowToGeek. Retrieved March 14, 2011 from http://www.howtogeek.com/howto/3814/make-gmail-the-default-application-for-mailto-links-in-google-chrome/