名称空间 – 如何以编程方式从附带附件的Windows手机发送邮件?

我想从我的模拟器发送带附件的邮件.但是在一些文章中我看到它使用了system.web.dll命名空间.我没有那个命名空间.

请帮我.提前致谢.

最佳答案 WP8看起来没有内置的方法来实现这一点.一个快速的谷歌搜索出现了
MailMessage.从文章:

MailMessage is a great component which fills a big hole on WP7/8 SDK,
you can now finally send unattended emails with attachments from your
app without using EmailComposeTask, and you can attach any type of
file (pdf, mp3, wav, mp4, avi, bmp, txt, zip, jpg, png…).

这是一个link to download.它不是免费的,但有一个免费试用版.

点赞