how to add clickable mailto email address?

Hi,

I would like to create a clickable mailto address in my content that i will populate the subject. i am using this site and WordPress does not seems to accept it.

http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_link_mailto

<p>

<mailto:someone@example.com?Subject=I%20need%20more%20information,%20or%20a%20no%20obligation%20consultation” target=”_top”>someone@example.com>

</p>

Can you help me with the exact code please.

  • Ash
    • Code Norris

    Hello @Adam Kayden

    I hope you are well today and thanks for asking the question.

    Try it like this:

    <p>
    <a href="mailto:someone@example.com?Subject=I%20need%20more%20information,%20or%20a%20no%20obligation%20consultation"> someone@example.com </a>
    </p>

    Hope it helps :slight_smile: Please feel free to ask more question if you have any.

    Cheers

    Ash

  • akayden
    • The Incredible Code Injector

    hi Ash,

    thanks for the reply. It does not seems to be working in WordPress content page. However, i see that the theme has a call to action button. This code work in that module instead. So i shall accept it that way.