Reputation: 5104
I would like to send SMS and Email via my C# code. How can I do that. In Wp7 we have SMScomposetask and Emailcomposetask. Whats the equivalent of that in Windows 8?
Upvotes: 1
Views: 966
Reputation: 19897
From here:
var mailto = new Uri("mailto:[email protected]&subject=The subject of an email&body=Hello from a Windows 8 Metro app.");
await Windows.System.Launcher.LaunchUriAsync(mailto);
There is an example of how to send an SMS message here. It uses the SendSmsMessageOperation
class. However:
Note This functionality is only available to mobile operator apps and Windows Store apps given privileged access by mobile network operators, mobile broadband adapter IHV, or OEM. For more information, see Mobile Broadband: Windows Store device apps.
More details here.
Upvotes: 1