Le 21/10/2013 18:18, Frédéric Blanchet a écrit : Hey !
as I understand it :
> var myTxtMail="The body for the email";
> var createEmail = new MozActivity({
> name: "new",
> data: {
> type: "mail",
> url: "mailto:" + Configuration.getInstance().playerEmail +
> "?subject=THE_subject&body=" +
> encodeURIComponent(myTxtMail),
attachmentNames: [ array of names ],
attachmentBlobs: [ array of blobs]
> }
> });
>
And the blobs should be real blobs. I think you don't need to create
files, juste create blobs using the Blob constructor. See
https://developer.mozilla.org/en-US/docs/Web/API/Blob#Blob_constructor_example_usage
for some examples.
--
Julien
signature.asc
Description: OpenPGP digital signature
_______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
