问题
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:

回答1:
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.";
}
来源:https://stackoverflow.com/questions/17804554/open-an-email-program-with-subject-and-body-prefilled-is-not-working-correct