0

Is there any way I can allow users to share the article with the HTML markdown within email?

I tried to create the link like shown below, but it just pastes the HTML code without formatting in the email client:

      <a href={`mailto:email@example.com?subject='Hello from Abstract!'&body=<a href="https://google.com/">some link</a>`}>
        Click to Send an Email
      </a>

next-share library also does the same:

    <EmailShareButton
        url={url}
        subject={title}
        body={'<a href="https://google.com/">some link</a>'}
      >
        Click to Send an Email
      </EmailShareButton>
domanskyi
  • 701
  • 1
  • 6
  • 19
  • Does this answer your question? [Can I set subject/content of email using mailto:?](https://stackoverflow.com/questions/4782068/can-i-set-subject-content-of-email-using-mailto) – Syfer Jun 13 '23 at 09:15
  • No. What I want to achieve is to have email body formated (with bold text, images, text links, and so on) – domanskyi Jun 13 '23 at 12:39
  • 1
    The chosen answer has a comment which answers your question _That is entirely client specific. In the general case, no._ – Syfer Aug 21 '23 at 03:27

0 Answers0