Trigger email with attachment (Start Activity android.intent.action.SEND)
Posted: 29 Nov 2019 09:35
Hi,
i have a workflow to take a picture and then send the picture as attachment via mail.
I implemented the mail stuff via "Start Activity" action "android.intent.action.SEND". I put the picture in Extras
This was working as expected.
Since the last upgrade of my mail app (K9 mail), this is not working any more. I tried another mail app (FairEmail). FairEmail told me that "An outdated app sent a file path instead of a file stream". According to their FAQ, modern apps should not have direct access to file system any more. I think that is the issue here
I think the android developer reference references this.
Do you know anything about how to get a file stream for a given file and use this in the intent instead in Automagic?
Regards
voigas
i have a workflow to take a picture and then send the picture as attachment via mail.
I implemented the mail stuff via "Start Activity" action "android.intent.action.SEND". I put the picture in Extras
Code: Select all
putUri("android.intent.extra.STREAM", "file://{picure_path}");
Since the last upgrade of my mail app (K9 mail), this is not working any more. I tried another mail app (FairEmail). FairEmail told me that "An outdated app sent a file path instead of a file stream". According to their FAQ, modern apps should not have direct access to file system any more. I think that is the issue here
I think the android developer reference references this.
Do you know anything about how to get a file stream for a given file and use this in the intent instead in Automagic?
Regards
voigas