sidlatau / flutter_email_sender

Allows send emails from flutter using native platform functionality.
Apache License 2.0
151 stars 84 forks source link

Attachments do not work with 5.2.0 #91

Closed lexxxel closed 1 year ago

lexxxel commented 1 year ago

I can not add attachments with 5.2.0. With 5.1.0 and below, everything worked as expected. I can reproduce this issue with Android 11 and 13. There are no warnings or other information in my logs.

tchavetdeuse commented 1 year ago

Same problem here on Android 12. It works with version 5.1.0. No warnings or other logs either. The mail app opens with all parameters (recipients, body and subject) correctly, but no attachments.

timukasr commented 1 year ago

Having same issue. Seems to be related to change from intent.action = Intent.ACTION_SEND to intent.action = Intent.ACTION_SENDTO, which does not add attachment to various e-mail clients and/or deivces. One example Stackoverflow thread with similar issue.

Would be nice if author reverted this change https://github.com/sidlatau/flutter_email_sender/blob/07896509219b9bbf059940813a0aa1c44a97e0ee/android/src/main/kotlin/com/sidlatau/flutteremailsender/FlutterEmailSenderPlugin.kt#L116

lexxxel commented 1 year ago

@sidlatau have you checked this bug?

tchavetdeuse commented 1 year ago

@sidlatau the problem is still there on 6.0.0

sidlatau commented 1 year ago

I reverted to code to use Intent.ACTION_SEND, please check v6.0.1