I'm trying to send an email from a Metro application (js or c#, doesn't matter) Is Share Contract the way to go? As far as I can tell you can't specify the email's recipient through the Share contract.
相关问题
- Inheritance impossible in Windows Runtime Componen
- How to add sender name before sender address in py
- Android: Using Intent to send email - only offerin
- Verify if an email address exists or not
- How can I add condition on mail notification larav
相关文章
- How do I make a forward e-mail link?
- Show flyout using BottomAppBar
- Receive share file intents with Flutter
- Debug HTML Email in Gmail App
- Sending email using php, gmail, and swiftmailer ca
- New Windows Application - What language?
- Get English exception message instead of local lan
- How to remove an element from an IGrouping
Use the EmailManager.ShowComposeNewEmailAsync API if you're on Windows 10. It uses the mailto: protocol underneath.
You can use a Uri scheme to open an app, but you need to use LaunchUriAsync. Also, with LauncherOptions set, if the user doesn't have the app installed Windows will bring them to the Store.
For example, here is my approach that only opens the mail app to side of the screen (I use it for error reporting), or if they have Outlook installed it will use it instead:
In the case of an email uri, the app is installed already, so it should work equally for every user. Additionally, if you know the FamilyPackageName you can set the preferred app to use.
Find more information about using the uri launcher here.
You are correct. There is no way. You could try constructing a mailto Uri and launching it
This is correct. The share contract is also available for other apps, i.e. Tweetro, which do not use an email address, therefore the user must type in an email address per hand. A mailto Uri does not work, it must be a valid Uri, otherwise it will not be displayed. See http://msdn.microsoft.com/en-US/library/windows/apps/hh465261 for all options you can set up for sharing via charms.