nDumbster .Net fake SMTP server

SimpleSmtpServer Members

SimpleSmtpServer overview

Public Static Fields

DEFAULT_SMTP_PORT Default SMTP port is 25.

Public Static Methods

StartOverloaded. Creates an instance of SimpleSmtpServer and starts it.

Public Instance Properties

Port The port that the SmtpServer listens to
ReceivedEmail List of email received by this instance since start up.
ReceivedEmailCount Number of messages received by this instance since start up.
Stopped Indicates whether this server is stopped or not.

Public Instance Methods

ClearReceivedEmail Erase list of received emails
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
Stop Forces the server to stop after processing the current request.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Fields

tcpListener Listen for client connection

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

SimpleSmtpServer Class | nDumbster.smtp Namespace