c#中的电子邮件 [英] Emails in c#

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

问题描述

我了解如何在c#中发送电子邮件,但我希望它能够确定是否存在连接,并且只要它发送它就

I understand how to send an email in c# but i want it to find out if there is a connection and as soon as there is it sends it

任何帮助都是赞赏

推荐答案

嗯,您需要监控NICS以获取网络流量,该网络托管您的SMTP服务器(通常是默认网关) )。当有字节传输时,就会有一个连接..

Well, you need to monitor the NICS for traffic to the net, which hosts your SMTP server (often the default gateway). When there are bytes transmitted, then there is a connection..

但是:我很确定你的未知场景需要一些不同的方法。那么你的用例是什么?你的背景是什么?

But: I'm pretty sure your untold scenario requires some different approach. Thus what is your use-case? What is your context?


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

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