I am using the following javascript code for a button to share posts via email. The code works and sends the email, but the URL in the received email is plain text. Is there a way to make the URL a clickable link?
function shareViaEmail() {
var sharedURL = location.href;
var emailSubject = ‘Check out this blog post’;
var emailBody = ‘I enjoyed this and thought you might like it, too.\n’ + encodeURIComponent(sharedURL);
var mailToLink = ‘mailto:?subject=’ + encodeURIComponent(emailSubject) + ‘&body=’ + encodeURIComponent(emailBody);
window.location.href = mailToLink;
}