mercredi 30 août 2017

How to add attachments from within a hybrid app using mailto: scheme

I am trying send pictures and audio from my cordova app as attachments in the mail using mailto: uri. For this, I use URI similar to:

mailto:some.one@somewhere.co.il?subject=my%20report&body=see%20attachment&attachment=file:///var/mobile/Containers/Data/Application/041193A7-DA1B-4B10-94B5-321FF380C85C/tmp/cdv_photo_003.jpg

The image uri is the path of the image I took using Cordova camera plugin in the same app that was saved in documents directory.

But i do not see any attachments in the mail client. Is it because of sandboxing and restrictions. Is it even possible to send attachments from app directories?




Aucun commentaire:

Enregistrer un commentaire