Sending email attachments via UWP EmailManager not working -


sending attachment universal app following code not working, why?

        dim emailmessage new emailmessage()         emailmessage.[to].add(new emailrecipient("a@b.com"))         emailmessage.subject = "test"         emailmessage.body = "hello world"          dim localappfolder = windows.storage.applicationdata.current.localfolder         dim file = await localappfolder.createfileasync("somefile.txt", windows.storage.creationcollisionoption.replaceexisting)         await windows.storage.fileio.writetextasync(file, "aaaa")         dim fileref = randomaccessstreamreference.createfromfile(file)         emailmessage.attachments.add(new emailattachment(file.name, fileref))         await emailmanager.showcomposenewemailasync(emailmessage) 

to, subject , body show fine in outlook, attachment missing: outlook screenshot

i believe because outlook desktop app. understood, emailmanager.showcomposenewemailasync uses mailto: protocal launch mail client app , use share provide email content.

if choose mail store app when select default app dialog launches, able see attachment following: enter image description here

if have chosen desktop outlook app default mailto protocol, have change default app mailto: protocol association in control panel .

previously, showcomposenewemailasync works windows phone runtime app. , not up-to-date in document, because doesn't include win 10 support.

on windows 10 mobile, works without problem. on windows desktop, have choose store app.


Comments

Popular posts from this blog

How to show in django cms breadcrumbs full path? -

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -