在地铁应用程序中发送电子邮件? [英] Sending an email in metro application?

查看:147
本文介绍了在地铁应用程序中发送电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的 Metro 应用程序中发送一封包含一些内容作为正文的电子邮件:-

I want to send an email with some content as a body in my metro app :-

1)由于 Metro 应用程序不支持 system.net.mail,我决定使用它 :-

1)since system.net.mail is not supported in metro application i have decided to use this :-

using Windows.System;
//starts the default mail app with a subject, cc, bcc, and body
Launcher.LaunchUriAsync(new Uri("mailto:windows8devs@almostbeta.com?subject=Code Request&cc=kevin@almostbeta.com&bcc=admin@almostbeta.com&body=Hi!"));

但我怀疑我想生成一个内容作为这封电子邮件的正文,但该内容是 html 类型,我的意思是该正文是 html 类型(在 html 标签之间指定一些文本或内容)

but my doubt is that i want to generate a content as a body to this email , but this content is of html type , i mean this body is of type html (specifiying some text or content in between the html tags)

请让我知道我该怎么做,即将一个简单的 html 类型的正文设置为我想通过我的应用程序发送的这封电子邮件的正文.

Please let me know how can i do this , i.e setting a simple html type body to as a body to this email which i would like to send through my application.

我做错了吗,如果我错了,请告诉我并纠正我.

Am i going wrong , pls let me know and correct me if i am wrong .

提前致谢.

推荐答案

WinStore 应用程序中的电子邮件故事现在非常糟糕.您可以使用没有内容的 mailto: 或使用没有电子邮件详细信息的共享超级按钮.我怀疑他们必须在未来的某个时候启用对某些电子邮件文档合同的支持,但我认为目前还没有.

The email story in WinStore apps is pretty broken right now. You can either use mailto: with no content or use share charms with no email details. I suspect they must enable support for some email document contracts at some point in the future, but I don't think it is available yet.

*编辑

这听起来也是一个很好的机会,可以让某人编写 Web 服务来发送电子邮件,如果一个好的服务尚不存在的话.你当然可以自己写一个.

It also sounds like a great opportunity for someone to write a web service to send emails if a good one doesn't already exist. You could of course write one yourself.

这篇关于在地铁应用程序中发送电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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