Open an email program with subject and body prefilled is not working correct
javascript, lotus-notes
Solution
Replacing body and subject should help you:
function emailpage() {
strTitle = document.title;
strTitle = strTitle.replace("&","-");
window.location = "mailto:?body=" + strTitle + " - " + window.location + "&subject=I thought this link might interest you.";
}
Problem
I have the following javascript function which should open (in our case lotus notes), with a prefilled email. ``` function emailpage() { strTitle = document.title; strTitle = strTitle.replace("&","-"); window.location = "mailto:" + "?subject=I thought this link might interest you." + "&body=" + strTitle + " - " + window.location; } ``` but instead I am getting this: