UWP应用怎样实现发邮件

Dustray 2016-01-23 11:35:19
跟传统桌面应用有差别,不能导入System.Net.Mail;
...全文
251 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
lindexi_gd 2019-02-20
  • 打赏
  • 举报
回复
[win10 uwp 使用 Microsoft.Graph 发送邮件 - lindexi - CSDN博客](https://blog.csdn.net/lindexi_gd/article/details/86692005#commentBox )
yangyi_2009 2016-01-26
  • 打赏
  • 举报
回复
引用 4 楼 u010168422 的回复:
[quote=引用 2 楼 yangyi_2009的回复:]
using Windows.System;

public static async Task FeedbackAsync(string address, string subject, string body)
{
    if (address == null)
        throw new ArgumentNullException(nameof(address));
    var mailto = new Uri($"mailto:{address}?subject={subject}&body={body}");
    await Launcher.LaunchUriAsync(mailto);
谢谢~如果不调用邮件应用,我想直接输入发送邮箱地址密码,接收邮箱地址,内容标题,能实现吗?[/quote] http://blogs.msdn.com/b/mim/archive/2013/11/29/sending-an-email-within-a-windows-8-1-application-using-streamsocket-to-emulate-a-smtpclient.aspx
Dustray 2016-01-25
  • 打赏
  • 举报
回复
引用 2 楼 yangyi_2009的回复:
using Windows.System;

public static async Task FeedbackAsync(string address, string subject, string body)
{
    if (address == null)
        throw new ArgumentNullException(nameof(address));
    var mailto = new Uri($"mailto:{address}?subject={subject}&body={body}");
    await Launcher.LaunchUriAsync(mailto);
谢谢~如果不调用邮件应用,我想直接输入发送邮箱地址密码,接收邮箱地址,内容标题,能实现吗?
Dustray 2016-01-25
  • 打赏
  • 举报
回复
引用 1 楼 JustinLiu27的回复:
UWP是什么?
windows10通用应用
yangyi_2009 2016-01-24
  • 打赏
  • 举报
回复
using Windows.System;

public static async Task FeedbackAsync(string address, string subject, string body)
{
    if (address == null)
        throw new ArgumentNullException(nameof(address));
    var mailto = new Uri($"mailto:{address}?subject={subject}&body={body}");
    await Launcher.LaunchUriAsync(mailto);
Justin-Liu 2016-01-24
  • 打赏
  • 举报
回复
UWP是什么?

110,537

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧