C# Class UnitTest.SMTPSimulator

Summary description for SMTPSimulator.
显示文件 Open project: nberardi/hMailServer Class Usage Examples

Public Methods

Method Description
Connect ( int iPort ) : void
ConnectAndLogon ( int port, string base64Username, string base64Password, string &errorMessage ) : bool
Disconnect ( ) : void
GetWelcomeMessage ( ) : string
Receive ( ) : string
SMTPSimulator ( ) : System
SMTPSimulator ( bool useSSL, int port ) : System
SMTPSimulator ( bool useSSL, int port, IPAddress ipaddress ) : System
Send ( string sFrom, List lstRecipients, string sSubject, string sBody ) : bool
Send ( string sFrom, string sTo, string sSubject, string sBody ) : bool
Send ( string sFrom, string sTo, string sSubject, string sBody, string &result ) : bool
Send ( string sData ) : void
SendAndReceive ( string sData ) : string
SendRaw ( string sFrom, string sTo, string text ) : bool
StaticSend ( string sFrom, List lstRecipients, string sSubject, string sBody ) : bool
StaticSend ( string sFrom, string recipient, string sSubject, string sBody ) : bool
StaticSendRaw ( string sFrom, string recipient, string sBody ) : bool
TestConnect ( int iPort ) : bool

Method Details

Connect() public method

public Connect ( int iPort ) : void
iPort int
return void

ConnectAndLogon() public method

public ConnectAndLogon ( int port, string base64Username, string base64Password, string &errorMessage ) : bool
port int
base64Username string
base64Password string
errorMessage string
return bool

Disconnect() public method

public Disconnect ( ) : void
return void

GetWelcomeMessage() public method

public GetWelcomeMessage ( ) : string
return string

Receive() public method

public Receive ( ) : string
return string

SMTPSimulator() public method

public SMTPSimulator ( ) : System
return System

SMTPSimulator() public method

public SMTPSimulator ( bool useSSL, int port ) : System
useSSL bool
port int
return System

SMTPSimulator() public method

public SMTPSimulator ( bool useSSL, int port, IPAddress ipaddress ) : System
useSSL bool
port int
ipaddress System.Net.IPAddress
return System

Send() public method

public Send ( string sFrom, List lstRecipients, string sSubject, string sBody ) : bool
sFrom string
lstRecipients List
sSubject string
sBody string
return bool

Send() public method

public Send ( string sFrom, string sTo, string sSubject, string sBody ) : bool
sFrom string
sTo string
sSubject string
sBody string
return bool

Send() public method

public Send ( string sFrom, string sTo, string sSubject, string sBody, string &result ) : bool
sFrom string
sTo string
sSubject string
sBody string
result string
return bool

Send() public method

public Send ( string sData ) : void
sData string
return void

SendAndReceive() public method

public SendAndReceive ( string sData ) : string
sData string
return string

SendRaw() public method

public SendRaw ( string sFrom, string sTo, string text ) : bool
sFrom string
sTo string
text string
return bool

StaticSend() public static method

public static StaticSend ( string sFrom, List lstRecipients, string sSubject, string sBody ) : bool
sFrom string
lstRecipients List
sSubject string
sBody string
return bool

StaticSend() public static method

public static StaticSend ( string sFrom, string recipient, string sSubject, string sBody ) : bool
sFrom string
recipient string
sSubject string
sBody string
return bool

StaticSendRaw() public static method

public static StaticSendRaw ( string sFrom, string recipient, string sBody ) : bool
sFrom string
recipient string
sBody string
return bool

TestConnect() public method

public TestConnect ( int iPort ) : bool
iPort int
return bool