C#套接字SMTP列表器 [英] C# Socket SMTP Listner

查看:136
本文介绍了C#套接字SMTP列表器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我们有两台运行我们应用程序的服务器。 2台服务器之间的所有信息都将作为SMTP消息发送,以便电子邮件扫描程序扫描它们。所以我们正在开发C#组件来发送和接收电子邮件。



至于发送电子邮件.Net框架提供内置的SMTP客户端来发送消息但我们的问题是面向是使用s套接字侦听器接收消息。当一个套接字绑定到哪个端口时smtpclient.send(message);发送,它什么也没收到。它不应该作为流接收消息吗?我们缺少什么?

解决方案

使用现有的邮件服务器,而不是编写SMTP服务器,如:http://www.hmailserver.com/ [ ^ ]并为该邮件服务器上的服务器设置电子邮件帐户。



要从POP3服务器读取,请参阅:POP3具有完全MIME支持的电子邮件客户端(.NET 2.0) [ ^

Hi All,

We have 2 servers running our application. All the information between the 2 servers would be sent as SMTP messages so that they can be scanned by a email scanner. So we are into developing C# components to send and receive emails.

As far as send emails .Net framework provides built in SMTP client to send messages but the issue we are facing is to receive the messages using s socket listener. When a socket is bound to port to which smtpclient.send(message); is sent, it is receiving nothing. Shouldn't it receive the message as a stream? What are we missing?

解决方案

Instead of writing a SMTP server, use an existing mail server like : http://www.hmailserver.com/[^] and setup email accounts for your servers on that mail server.

To read from a POP3 server see this : POP3 Email Client with full MIME Support (.NET 2.0)[^]


这篇关于C#套接字SMTP列表器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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