you can force the message body to be plain text by adding the attribute
force-plain-text to the mailto url:
mailto:[EMAIL PROTECTED]?subject=Hello&force-plain-text
However, for security reason, you cannot specified any kind of
attachment! That would open the door to malicious person to steal files
from a remote computer.
Jean-Francois
Martin Kutschker wrote:
> Hi!
>
> Mozilla honours the query parameters subject and body in a mailto link. So
> with
>
> window.open('mailto:[EMAIL PROTECTED]?subject=hallo&body=hi!','','')
>
> I may open a new message.
>
> But this is rather akward for a larger body text. Also I want to set the
> mail type to be text/plain. Perhaps there is another query parameter for
> this?
>
> Anyway, what I really want to do is this:
>
> Create some data via Javascript and let the user mail them to his home
> account. The data will be created by an online XUL application. Ideally the
> data should be sent as attachemnt or in a mail with a special MIME type (eg
> application/x-my-app).
>
> Is there any way to do this? Perhaps via XPCOM?
>
> Masi
>
>
>