如何使用 Windows Phone 7 API 发送带有附件的电子邮件? [英] How to send email with an attachment using Windows Phone 7 API?

查看:23
本文介绍了如何使用 Windows Phone 7 API 发送带有附件的电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 WP7 应用程序要求是发送带有附件的电子邮件并使用设备默认的 SMTP 设置.

My WP7 application requirement is to send the email with an attachment and use device default SMTP settings.

我尝试过 EmailComposeTask 类,但它没有任何附件成员.

I have tried EmailComposeTask class but it doesn't have any member for attachment.

另一个想法,我想是将文件上传到服务器上,然后从该服务器发送电子邮件.

The other idea, i am thinking is to upload the file on server and then send the email from that server.

如果无法使用 WP7 API 发送带有附件的电子邮件,您会怎么想?

What you think if there is no way to send the email with an attachment using WP7 API?

推荐答案

您的观察是正确的,此时 EmailComposeTask 不支持附件,并且这是目前唯一可以从设备以编程方式发送电子邮件的工具.

Your observation is correct, at this point in time EmailComposeTask doesn't support attachments and this is the only facility to send email programatically from the device at the moment.

如您所见,您可以与可以代表您的应用执行此任务的服务器进行通信.

As you note, you can communicate with a server which can perform this task on behalf of your app.

这篇关于如何使用 Windows Phone 7 API 发送带有附件的电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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