Does Windows 8’s built-in email client serve as a share target and, if so, will it send email sent it in this fashion (shared with it programmatically) without requiring direct user intervention?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Let’s see if I can decrypt your question.
Yes: the email client pre-installed on Windows 8 (the “native” one) is a share target, yes. It is a PlainText and HtmlText share target out-of-the-box. All you need to do is share out from your app and Mail comes up as a potential target in the list.
As a result, the entire mail operation is handled by the mail application. You can’t automate it. You also can’t interrupt it. Once you share out, the target app handles the payload as it pleases.
If you want to automate an email send operation you need a service to help you do it. If you want to handle it on the client, read this: http://mikaelkoskinen.net/post/windows8-metro-app-winrt-send-email-emailcomposetask.aspx
Note: You should note that the operating system brokers all interaction across the share operation. This means you cannot reach out to the share target from your app, and the share target cannot reach back to your application. The best you have is knowledge of which target app the user has selected.