-2

how can i allow a clickable "EMAIL" text in html to automatically open some email app or site inserting the clicked email in the " To: " form?

Syertim
  • 147
  • 1
  • 12

3 Answers3

8

Use mailto links:

<a href="mailto:someone@yoursite.com">Email Us</a>  

https://css-tricks.com/snippets/html/mailto-links/

gokublack
  • 1,260
  • 2
  • 15
  • 36
3

Simply use the mailto URL format, like so:

<a href="mailto:someone@somewhere.com">email</a>
Alex Broadwin
  • 1,288
  • 11
  • 23
1

Simply use the following URL format

<a href="https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=someone@somewhere.com"                                  target="_blank">someone@somewhere.com</a>
  • 2
    While this code may solve the question, [including an explanation](//meta.stackexchange.com/q/114762) of how and why this solves the problem would really help to improve the quality of your post, and probably result in more up-votes. Remember that you are answering the question for readers in the future, not just the person asking now. Please [edit] your answer to add explanations and give an indication of what limitations and assumptions apply. – Yunnosch May 05 '21 at 13:39