[Javascript] Mailto links -- formatting a message

Flávio Gomes flavio at economisa.com.br
Wed Aug 2 15:55:50 CDT 2006


I think it wont help much, but 
mailto:just at test.com?subject=testmail&body=<b>Hello</b> 
<mailto:just at test.com?subject=testmail&body=%3Cb%3EHello%3C/b%3E>
 worked just fine in MozillaMail  and "GmailNotifier"

Peter Brunone escreveu:

> 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= 
> <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
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>  
>

-- 
Flavio Gomes
flavio at economisa.com.br

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


More information about the Javascript mailing list