By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,228 Members | 1,436 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,228 IT Pros & Developers. It's quick & easy.

Does anybody know how to pass mime content-type in mailto: tag?

P: n/a
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.

Thanks!

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);


Ter
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <88**************************@posting.google.com >,
fi*********@yahoo.com (Sam) wrote:
Does anybody know the proper format to pass content-type in a mailto: Link?


No. Use server side scripts to send out e-mails put together by forms.
Then you can easily determine the MIME-type of the outgoing message.
Stick with plain text unless you have a very good reason not to.

--
Kris
<kr*******@xs4all.netherlands> (nl)
<http://www.cinnamon.nl/>
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.