Button theme: build mailto: social link

  • Author
    Posts
  • #2891277

    https://wordpress.com/themes/button/

    How to build the custom link so that post title and link are respectively written in email subject and body?

    Thanks.

    The blog I need help with is tradiciondigital.wordpress.com.

    #2891391

    chad1008
    Staff

    You can add additional parameters to the end of the URL, but they won’t be able to grab the title and link of specific posts – that’s a more than the HTML link can handle :)

    To set a subject and body for the emails, you’d do something like this:

    mailto:(email redacted)?subject=This is the subject&body=This is the body text you would like to see

    Notice the first item after the email address starts with a ? – after that, they would all start with &.

    You can also add things like CC addresses if needed. Here’s a guide with some more examples (these are full html, you only need the part I’v shown you above)
    https://css-tricks.com/snippets/html/mailto-links/

The topic ‘Button theme: build mailto: social link’ is closed to new replies.