Windows Phone 8.1从代码发送HTML邮件 [英] Windows Phone 8.1 Send HTML mail from code

查看:117
本文介绍了Windows Phone 8.1从代码发送HTML邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用代码中定义的内容打开邮件应用程序,但是当我发送时,gmail / oulook ...显示为纯文本而不是HTML。

I'm trying to open mail application with it's content defined in code, but when i send it, gmail / oulook ... display as a plain text instead of HTML.

private async void SendEmail(string url)
{

    EmailMessage mail = new EmailMessage();
    mail.Subject = "test";
    mail.Body = string.Format("<!DOCTYPE html><html><body><image src=\"{0}\"/></body></html>", url);

    await EmailManager.ShowComposeNewEmailAsync(mail);

}

如何强制内容显示为HTML而不是纯文本文本?

How can i force content to display as HTML instead of plain text ?

编辑:avaiable属性的屏幕截图:

EDIT : Screenshot of avaiable properties :

推荐答案

你根本不能。这是否是与安全或缺少功能有关的限制Windows Phone无法发送HTML格式的电子邮件,而不是代码或邮件客户端。

You simply cannot. Whether this is a limitation related to safety or missing functionality Windows Phone can not send HTML-formatted email, not by code or by mail client.

您可以做的是使用您自己的后端服务器发送html格式的电子邮件。

All you can do is use your own backend server to send html formated emails.

这篇关于Windows Phone 8.1从代码发送HTML邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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