摘要:
//调用示例
private void button1_click(object sender, system.eventargs e)
{
(new windowsapplication1.httprequestresponse()).sendrequestandgetresponse();
(new windowsapplication1.httprequestres......
摘要:
namespace mysmtp
{
using system;
using system.net;
using system.net.sockets;
using system.text;
using system.collections;
interface itransport
{
void sethost(string smtphost);
string g......
第二部分,公共属性
接上
--------------------------------------
/// <summary>
/// 最多收件人数量
/// </summary>
public int recipientmaxnum
{
set
{
recipientmaxnum = value;
}
}
/// <summary>
/// 邮件服务器域名与验证信息
/// 形如:"user:pass@www.server.com:25",也可省略次要信息....
下一页 摘要:
下面举个简单的例子来说明怎么使用这个基类。下面这个server实现的功能很简单,通过实现基类的docommunication抽象方法来实现监听8000端口,如果有客户端连接,就发送一条信息。为了说明stop的用法,我另起了一个线程在30秒后自动关闭这个server.你可以把程序编译后运行,然后通过ie来访问看一下实现的功能。
testserver.cs
using syste......