Mailto - 30 seconds of code
https://www.30secondsofcode.org/react/s/mailtoMailto. React, Components. Renders a link formatted to send an email (mailto: link). Use the email, subject and body props to create a <a> element with an appropriate href attribute. Use encodeURIcomponent to safely encode the subject and body into the link URL. Render the link with children as its content.
All About mailto: Links - CSS-Tricks
https://css-tricks.com/all-about-mailto-links22.03.2019 · mailtolink.me will help generate email links. Use a <form> to let people craft the email first. I’m not sure how useful this is, but it’s an interesting curiosity that you can make a <form> do a GET, which is basically a redirect to a URL — and that URL can be in the mailto: format with query params populated by the inputs! It can even open in a new tab.
Mailto - 30 seconds of code
www.30secondsofcode.org › react › sMailto - 30 seconds of code Mailto React, Components Renders a link formatted to send an email ( mailto: link). Use the email, subject and body props to create a <a> element with an appropriate href attribute. Use encodeURIcomponent to safely encode the subject and body into the link URL. Render the link with children as its content.