[Javascript] Mailto links -- formatting a message

Peter Brunone peter at brunone.com
Wed Aug 2 14:52:53 CDT 2006



This is probably a silly question and I think I know the answer, but this list has proven me wrong before.

Is there any way to use a "mailto:" link (most likely by building the body content as a Javascript variable) to produce formatted text in the body?  It's okay if this is an IE-only solution; it's for a MS-based intranet site with Outlook on all machines.

I've tried using the following:

var sBody = "Here is some <b>sample</b> text.\n\nWhat do you think?";
window.location.href = mailto:peter at brunone.com?subject=testmail&body=" + unescape(sBody);

but even when I use unescape, the bold tags show up as bold tags (&lt;b&gt; in View Source).  Is there any hope for me, perhaps through custom-script some Outlook object?

Cheers,

Peter

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060802/442ae337/attachment.htm>


More information about the Javascript mailing list