Windows phone sdk 使用 XNA 游戏引擎发送电子邮件 [英] Windows phone sdk send email with XNA game engine

查看:22
本文介绍了Windows phone sdk 使用 XNA 游戏引擎发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的 Windows Phone 制作一个游戏,使用 Visual Studio 2012 for Windows Phone 并且从那里开始运行良好,我编写了一些类并添加了资产,但我遇到了问题.

I am making a game for my windows phone, using Visual Studio 2012 for Windows Phone and it went good from there, I wrote a few classes, and added assets but I encountered a problem.

我想提出一个错误请求/想法方法,但我无处可找到与 XNA 发送电子邮件的地方.我在谷歌上搜索,但它想出了如何使用 XNA 游戏工作室"之类的东西,在底部它说给我们发电子邮件"之类的东西,所以我从来没有发现过.我找不到它.谁能帮帮我?

I wanted to make a bug request / idea method, but no-where could I find where to email with XNA. I searched on Google but it came up with stuff like "How to use XNA game studio" and at the bottom it said stuff like "email us" so I never found it out. Basicley I couldn't find it. Can anyone help me out?

推荐答案

您可以使用 WP8 中的 EmailComposeTask 类发送电子邮件.但这不是完全自动的,用户必须选择要发送电子邮件的帐户,然后弹出电子邮件显示,然后他们必须单击发送按钮.你可以这样试试:

You can send an email out using the EmailComposeTask class in WP8. But it not totally automatic, the user has to select the account to send the email with then the Email display pops up then they have to click on send button. You can try it like this:

如何使用Windows Phone 8 的电子邮件撰写任务

using Microsoft.Phone.Tasks;

// do this when the page has load completely (not in the constructor)

EmailComposeTask emailComposeTask = new EmailComposeTask();

emailComposeTask.Subject = "message subject";
emailComposeTask.Body = "message body";
emailComposeTask.To = "recipient@example.com";
emailComposeTask.Cc = "cc@example.com";
emailComposeTask.Bcc = "bcc@example.com";

emailComposeTask.Show();

<小时>

但是,我认为这不是您想要的.我会做的是因为很难静默地做电子邮件的事情是创建一个网页,你可以发布到.然后,您只需打开一个 WebClient 并将您需要的数据发布到该网站.然后在网站的后端,只需将 POST[DATA] 解码到数据库中即可.


However, I don't think this is what you want. What I would do instead because it's difficult to do the email thing silently is create a webpage, that you can POST to. You then can just open a WebClient and POST the data that you need to that website. Then on the website's back end, just decode the POST[DATA] into a database.

希望对你有帮助,祝你好运.

Hope this helps you, good luck.

这篇关于Windows phone sdk 使用 XNA 游戏引擎发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆