简体   繁体   English

如何“默默地”发送电子邮件?

[英]How to “silently” send an email?

How can I "silently" (without user's intervention needed) send an email from a C# Windows 8 "Metro"/Store/Modern UI app? 如何“无声地”(无需用户干预)从C#Windows 8“Metro”/ Store / Modern UI应用程序发送电子邮件?

UPDATE UPDATE

Based on what I glean from here: 根据我从这里收集的内容:

http://social.msdn.microsoft.com/Forums/da/winappswithcsharp/thread/393a123f-674c-4b44-af87-9963053f42fd http://social.msdn.microsoft.com/Forums/da/winappswithcsharp/thread/393a123f-674c-4b44-af87-9963053f42fd

It may be that I can use my app as a Share Source, targeting the built-in email client, and IT will send my email on. 可能我可以将我的应用程序用作共享源,以内置电子邮件客户端为目标,IT部门将发送我的电子邮件。 Make sense? 说得通?

UPDATE 2 更新2

I'm thinking Raw Notifications (http://code.msdn.microsoft.com/windowsapps/Raw-notifications-sample-3bc28c5d) might be in my future. 我认为Raw Notifications(http://code.msdn.microsoft.com/windowsapps/Raw-notifications-sample-3bc28c5d)可能在我的未来。

WinRT doesn't include the System.Net.Mail namespace, so if you want to directly send an email from your app, you need to manually connect to your mail web service, opening a socket to the SMTP port, etc. WinRT不包含System.Net.Mail命名空间,因此如果要直接从应用程序发送电子邮件,则需要手动连接到邮件Web服务,打开SMTP端口的套接字等。

Otherwise, you need to call something like a WCF service that receives parameters and sends the mail. 否则,您需要调用接收参数和发送邮件的WCF服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM