What's the HTML code for?

Whats the HTML code to make it so when you click on the link it opens windows outlook and enters your email?

  • Answer:

    All answers are correct... but it is the wrong way! mailto will open the user's default mailer IF and only IF that mailer has been set correctly (and will open Outlook ONLY if the user HAS Outlook, which is pretty often not the case). In other words, "mailto" fails more than 75% of the time. If you have php on your server, use "mail()" function. Go to http://www.web2coders.com and download the free script "Form to Email".

Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

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

Eric Shult

<a href="mailto:[email protected]" title="Email me">Email</a> You could also set the subject and body using this code, but if the browser doesn't support it then mail could get lost on its way to you. <a href="mailto:[email protected]?subject=… title="Email me">Email with pre-filled subject and body.</a> It will open in the user's default mail program (set through Internet Options, then Programs). See http://draac.com/htmlextrasmisc.html#5.

isa_superfast

It's like hyperlink code but the destination isn't a web address. Instead, it is 'mailto:<e-mail address>'. For example: <a href=mailto:[email protected]>Send E-Mail</a> Change [email protected] to your desired e-mail address and 'Send E-Mail' to your desired text of the link (or you may use image as the clickable link). Hope this helps :)

<a href="mailto:[email protected]">Link</a> And this will add a predefined subject <a href="mailto:[email protected]?subject=1234… Is that ok for u buddy??

Manoj F

<a href="mailto:[email protected]"> </a> I believe it opens the user's default email program, not outlook only.

BLG

<a href="mailto:youremailaddress">Email Me</a>

Obstacle_1

<A HREF="mailto:[email protected]">[email protected]</A… it will open the user's default mail program (set in internet options)

kastaguy

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.