RICHARD said:
I am creating a website that includes using a mailto .
Is is possible to preload some text into the body of the message ?
Thanks
function mailThisMsg() {
var subj = "Mail from Me"
var text = "Some text in the body"
var content = new Array()
content[0] = "mailto:"
content[1] = (e-mail address removed)
content[2] = "?subject="
content[3] = subj
content[4] = "&body="
content[5] = text
content = content.join("")
window.location = content
}
HTML
<input type="button" value="Send Email" onClick="mailThisMsg();">
Add your text into the variable text. Or you can split it up if you want
text = "Some text in the body"
+ "Some more text in the body"
+ "Some more text in the body"
+ "Some more text in the body"