发送电子邮件和附件 [英] Send Email and Attachment

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

问题描述

我使用以下代码发送电子邮件.但是当我在 VS 中的 Simulator 中运行它时,无法启动电子邮件客户端.我做错了什么?但是电子邮件客户端以本地机器模式启动.

<前>var mailto = new Uri("mailto:?to=recipient@example.com&subject=Win8 Email&body=n Hi.");等待 Windows.System.Launcher.LaunchUriAsync(mailto);

解决方案

这就是答案.

在 Windows 8.0 中使用 WinRT 您目前无法附加附件.

抱歉,如果这不是您想听到的答案.

您可以随时使用服务发送电子邮件;那么你可以/可以做任何事情.

I used below code to send email. But when I run it in Simulator in VS, the email client can not be launched. What I did wrong? But the Email Client launched in Localmachine mode.

var mailto = new Uri("mailto:?to=recipient@example.com&subject=Win8 Email&body=n Hi.");

await Windows.System.Launcher.LaunchUriAsync(mailto);

解决方案

This is the answer.

Using WinRT in Windows 8.0 you cannot attach an attachment at this time.

Sorry if that is not the answer you wanted to hear.

You can always use a service to send the email; then you can/could do anything.

这篇关于发送电子邮件和附件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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