-1

Lets say there is this link:

<a href="someemaillink@somedomain.com">someemaillink@somedomain.coml</a>

And when user clicks the link above, their email client pops open. How do i do that?

dave
  • 14,991
  • 26
  • 76
  • 110

4 Answers4

1

Use mailto:

<a href="mailto:someemaillink@somedomain.com">someemaillink@somedomain.coml</a>

But consider using a method that will not allow the address to be read by bots to send spam to. That is, if your usage is public.

bearfriend
  • 10,322
  • 3
  • 22
  • 28
1

use this, this will work

<a href="mailto:someemaillink@somedomain.com">someemaillink@somedomain.coml</a>
Can
  • 553
  • 1
  • 9
  • 29
1

HTML has a syntax for this:

<a href="mailto:joe@example.com?subject=feedback" "email me">email me</a>
Burning Crystals
  • 1,157
  • 3
  • 19
  • 35
0

Nvm, i found it:

<a href="mailto:someemaillink@somedomain.com">someemaillink@somedomain.coml</a>
dave
  • 14,991
  • 26
  • 76
  • 110