This class implements SMTP session. Defined RFC 5321.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public class SMTP_Session : TCP_ServerSession
Public Class SMTP_Session Inherits TCP_ServerSession
public ref class SMTP_Session : public TCP_ServerSession
type SMTP_Session = class inherit TCP_ServerSession end
Members
All Members | Constructors | Methods | Properties | Events | |
Icon | Member | Description |
---|---|---|
SMTP_Session()()()() |
Default constructor.
| |
AuthenticatedUserIdentity |
Gets authenticated user identity or null if user has not authenticated.
(Overrides TCP_Session.AuthenticatedUserIdentity.) | |
Authentications |
Gets supported SASL authentication methods collection.
| |
BadCommands |
Gets number of bad commands happened on SMTP session.
| |
Certificate |
Gets session certificate.
(Inherited from TCP_ServerSession.) | |
ConnectTime |
Gets the time when session was connected.
(Inherited from TCP_ServerSession.) | |
Disconnect()()()() |
Disconnects session.
(Inherited from TCP_ServerSession.) | |
Disconnect(String) |
Disconnects session.
(Inherited from TCP_ServerSession.) | |
Disonnected |
This event is raised when session has disconnected and will be disposed soon.
(Inherited from TCP_ServerSession.) | |
Dispose()()()() |
Cleans up any resource being used.
(Overrides TCP_ServerSession.Dispose()()()().) | |
Disposed |
This event is raised when session has disposed.
(Inherited from TCP_ServerSession.) | |
Ehlo |
Is raised when EHLO command received.
| |
EhloHost |
Gets client reported EHLO host name. Returns null if EHLO/HELO is not issued yet.
| |
Equals(Object) | (Inherited from Object.) | |
Error |
This event is raised when TCP server session has unknown unhandled error.
(Inherited from TCP_ServerSession.) | |
Finalize()()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
From |
Gets MAIL FROM: value. Returns null if MAIL FROM: is not issued yet.
| |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetMessageStream |
Is raised when SMTP server needs to get stream where to store incoming message.
| |
GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) | |
ID |
Gets session ID.
(Inherited from TCP_ServerSession.) | |
IdleTimeout |
This event is raised when session idle(no activity) timeout reached.
(Inherited from TCP_ServerSession.) | |
IsAuthenticated |
Gets if this session is authenticated.
(Inherited from TCP_Session.) | |
IsConnected |
Gets if session is connected.
(Inherited from TCP_ServerSession.) | |
IsDisposed |
Gets if TCP server session is disposed.
(Inherited from TCP_ServerSession.) | |
IsSecureConnection |
Gets if this session TCP connection is secure connection.
(Inherited from TCP_ServerSession.) | |
LastActivity |
Gets the last time when data was sent or received.
(Inherited from TCP_ServerSession.) | |
LocalEndPoint |
Gets session local IP end point.
(Inherited from TCP_ServerSession.) | |
LocalHostName |
Gets local host name.
(Inherited from TCP_ServerSession.) | |
LogAddException(String, Exception) |
Logs exception.
| |
LogAddRead(Int64, String) |
Logs read operation.
| |
LogAddText(String) |
Logs free text entry.
| |
LogAddWrite(Int64, String) |
Logs write operation.
| |
MailFrom |
Is raised when MAIL FROM: command received.
| |
MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MessageStoringCanceled |
Is raised when SMTP server has canceled message storing.
| |
MessageStoringCompleted |
Is raised when SMTP server has completed message storing.
| |
OnError(Exception) |
Is called when session has processing error.
(Overrides TCP_ServerSession.OnError(Exception).) | |
OnTimeout()()()() |
This method is called when specified session times out.
(Overrides TCP_ServerSession.OnTimeout()()()().) | |
RcptTo |
Is raised when RCPT TO: command received.
| |
RemoteEndPoint |
Gets session remote IP end point.
(Inherited from TCP_ServerSession.) | |
Server |
Gets session owner SMTP server.
| |
Start()()()() |
Starts session processing.
(Overrides TCP_ServerSession.Start()()()().) | |
Started |
Is raised when session has started processing and needs to send 220 greeting or 554 error resposne to the connected client.
| |
SwitchToSecure()()()() |
Switches session to secure connection.
(Inherited from TCP_ServerSession.) | |
SwitchToSecureAsync(TCP_ServerSession..::..SwitchToSecureAsyncOP) |
Starts switching connection to secure.
(Inherited from TCP_ServerSession.) | |
Tag |
Gets or sets user data.
(Inherited from TCP_ServerSession.) | |
Tags |
Gets user data items collection.
(Inherited from TCP_ServerSession.) | |
TcpStream |
Gets TCP stream which must be used to send/receive data through this session.
(Inherited from TCP_ServerSession.) | |
To |
Gets RCPT TO: values. Returns null if RCPT TO: is not issued yet.
| |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |
Transactions |
Gets number of mail transactions processed by this SMTP session.
|
Inheritance Hierarchy
Object | |||
TCP_Session | |||
TCP_ServerSession | |||
SMTP_Session |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119