Reputation: 654
I have created a webpage with some hyperlinks (not online yet).
I'm supposed to include certain hyperlinks for the Email IDs on the page.
I tried to create links in this format:
<a href="mailto:[email protected]">
But these are not opening up using Outlook's new mail, as it is supposed to.
On Chrome, it does nothing. On Firefox, IE & Safari it opens a new blank Chrome Window when I click on the link.
This system is new and has all the above browsers up to date.
Upvotes: 31
Views: 114285
Reputation: 62373
Send Mail
from <a href="mailto:[email protected] " target="_top">Send Mail</a>
to work in Google Chrome in Windows 10:
mail.google.com
will be the email handler.
Upvotes: 17
Reputation: 329
If your code is not working by using any of the above solutions, then you the code below. try to wrap
with an anchor tag, In most cases when a tag is in p tag that does not work. so get the tag out of
tag and wrap the
tag.
<a href="mailto:[email protected]"> <p>[email protected]</p> </a>
Upvotes: 0
Reputation: 27001
Provided you have registered a default email client, this usually works, if you're using an <a>
tag as follows:
<a href="mailto:[email protected]">Mail me</a>
To change or check the email client settings, do the following (cited from MSDN) - I have modified it slightly because it differs depending on the Windows version you're using:
Depending on the Windows version:
Open Default Programs by clicking the Windows Start button, and then clicking Default Programs.
Or: Open the Control Panel in the Start Menu *), then use the search text box
in the upper right corner of the Control Panel screen and type Default Programs
there. Hit Enter.
Click Set your default programs.
Under Programs, click the Email program you'd like to use, and then click Set this program as default.
Click OK.
Note
The first time you start them, some email programs display a message asking you if you want to use that program as the default. If you choose to do so, this program will become your default email program, even if you've chosen a different program using "Set your default programs" earlier.
*) In , you can find the Control Panel, if you open the Windows menu , then click on the cogwheel icon , then enter Control Panel
in the search box.
Upvotes: 20
Reputation: 3306
Try something like this:
<!DOCTYPE html>
<html>
<body>
<p>
Click to email :
<a href="mailto:[email protected]?Subject=Hello" target="_top">[email protected]</a>
</p>
</body>
</html>
Upvotes: 0
Reputation: 63
Are you sure you are closing the anchor correctly? The full HTML should be this:
<a href="mailto:[email protected]">Test</a>
Upvotes: 2
Reputation:
If you are using Windows 7 or higher, then all you have to do is set the default email client. Check this in the control panel under Default Apps
setting.
Just click on the email client you want and you are all set.
Upvotes: 8