我想问下windows phone无法直接在后台发送短信,那如何通过短信平台发送短信呢,谢谢
你好。这样做:
Windows.ApplicationModel.Chat.ChatMessage msg = new Windows.ApplicationModel.Chat.ChatMessage();
msg.Body = “短信内容”;
msg.Recipients.Add(“10086″);//短信的接受者,可以添加多个
await Windows.ApplicationModel.Chat.ChatMessageManager.ShowComposeSmsMessageAsync(msg);//发送