passing content-type in mailto: link?

S

Sam

Does anybody know the proper format to pass content-type in a mailto: Link?

Here is what I have. I doesn't work if I escape() the whole body either.


var z = new String("mailto:");
if('w' == move) {
z += escape(wh) + "?to=" + escape(wh);
} else {
z += escape(bl) +"?to=" + escape(bl) ;
}
z += "&subject=email chess&body=" +
"Content-type: text/html; charset=\"US-ASCII\" " + /*does not work!*/
"Content-transfer-encoding: quoted-printable " + escape(
"<html><a href='" +
theurl() +
"?d=" + rlc(board) +
"&w=" + wh +
"&b=" + bl + "&m=" + move +
"'>Please click here</a></html>") ;
location.replace(z);
 
J

Janwillem Borleffs

Sam said:
Does anybody know the proper format to pass content-type in a mailto:
Link?

You can't send headers with client-side JavaScript and the usage of the
mailto: pseudo-protocol is a very bad idea (Google for related NG threads
for info).

Solution: use a server side script instead, or look for an online service
which provides you with one.


JW
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top