N
nAmYzArC
Hi everyone,
I'm setting the body of an email using values from a form
firstname = bob
lastname = dole
ebody = 'First Name: ' + firstname + '\r\n' + 'Last Name: ' + lastname
window.location.href = 'mailto:[email protected]?subject=test
email&body=' + ebody;
If I do an "alert(ebody);" I get the linebreak between firstname &
lastname, however when it opens up outlook, the entire ebody string
appears without a linebreak in the email body.
I've tried just \n also. is there something that can give be a line
break?
I'm setting the body of an email using values from a form
firstname = bob
lastname = dole
ebody = 'First Name: ' + firstname + '\r\n' + 'Last Name: ' + lastname
window.location.href = 'mailto:[email protected]?subject=test
email&body=' + ebody;
If I do an "alert(ebody);" I get the linebreak between firstname &
lastname, however when it opens up outlook, the entire ebody string
appears without a linebreak in the email body.
I've tried just \n also. is there something that can give be a line
break?