cjlotz / Xamarin.Plugins

Cross platform Xamarin Plugins
MIT License
113 stars 56 forks source link

(UWP) Attachment not added when using outlook as the default email application #73

Closed JorisZwaenepoel closed 6 years ago

JorisZwaenepoel commented 7 years ago

I am using this component to send an email with attachment from a Xamarin Forms app, but when my app is run on Windows 10 and Outlook is the default email app, the attachment is not added to the email.
When using the "Mail" app that comes with Windows 10, it works as expected (the attachment is included).

Is this a known issue? Is there a workaround for this problem?

cjlotz commented 7 years ago

@JorisZwaenepoel Unfortunately I don't have a setup to verify this. I ran the UWP sample (not UWP forms though) on the latest v5 release on a Windows Phone that uses the Outlook Email client and the attachment functionality was working.

Perhaps try with the latest version of the plugin released? I also updated the samples to now directly reference the source code of the plugin so it should be a lot easier to try and debug this kind of issue using the sample projects.

prashantvc commented 6 years ago

@JorisZwaenepoel @cjlotz I verify this issue on an UWP app too (on Windows Fall update) and not able to reproduce.

A sample demonstrating the issue will really help to troubleshoot it.

JorisZwaenepoel commented 6 years ago

Hi @prashantvc, @cjlotz,

I attached a sample project that demonstrates the issue. I also attached 2 screenshots: 1 from the Windows Mail-app (where everything works as expected: the attachment is there), and 1 when Outlook is the default email app (and here, as you can see, the attachment is missing).

Thanks in advance for having a look at this. Kind regards, Joris

screenshot outlook screenshot windows mail XFEmailSample.zip

prashantvc commented 6 years ago

@JorisZwaenepoel this is know issue with UWP platform. The attachment works only with the other UWP apps.

This issue is being discussed there on the MSDN forums. Right now it is recommended to create a feature request at http://wpdev.uservoice.com