निम्नलिखित कोड के साथ एक सार्वभौमिक ऐप से अनुलग्नक भेजना काम नहीं कर रहा है, क्यों?UWP ईमेल प्रबंधक के माध्यम से ईमेल अनुलग्नक भेजना
Dim emailMessage As New EmailMessage()
emailMessage.[To].Add(New EmailRecipient("[email protected]"))
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)
करने के लिए Outlook में, विषय और मुख्य भाग शो ठीक है, लेकिन लगाव याद आ रही है: Outlook screenshot
क्या कोई यूडब्ल्यूपी ऐप्स से ईमेल संलग्नक भेजने में सक्षम है? – tcctest