The Smtp type exposes the following members.

Methods

  Name Description
Public method Connect
Establishes an Smtp connection to the server specified in the Smtp constructor.
Public method CreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public method Disconnect
Disconnects from SMTP server.
Public method Dispose()()()()
Releases all resources used by the Component.
(Inherited from Component.)
Protected method Dispose(Boolean)
Clean up any resources being used.
(Overrides Component..::..Dispose(Boolean).)
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component.)
Protected method FireCommandSentEvent
Fires CommandSentEvent event.
Protected method FireConnectedEvent
Fires ConnectedEvent event.
Protected method FireDataReceivedEvent
Fires DataReceivedEvent event.
Protected method FireDisconnectedEvent
Fires DisconnectedEvent event.
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public method GetOutputStream
Gets the output stream of the socket connection.
Protected method GetService
Returns an object that represents a service provided by the Component or by its Container.
(Inherited from Component.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method InitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public method Interrupted
Interrupts the current process.
Public method IsConnected
Tests Smtp connection.
Public method IssueCommand
Issues a command to SMTP server and reads response.
Public method Login(String, String)
Logs in using plain text authentication.
Public method Login(String, String, Int32)
Logs in using plain text authentication.
Protected method MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method MemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Protected method ReadResponse
Gets the response from the SMTP server.
Public method Send
Sends basic email message.
Public method ToString
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)
Protected method WriteCommand
Writes the command into the output stream.

Fields

  Name Description
Public field Static member AUTH_PASS
Login type.
Protected field heloAddress
The helo address.
Protected field input
Input stream for Smtp.
Protected field output
Output stream for Smtp.

Properties

  Name Description
Protected property CanRaiseEvents
Gets a value indicating whether the component can raise an event.
(Inherited from Component.)
Public property Container
Gets the IContainer that contains the Component.
(Inherited from Component.)
Public property Debug
Gets/Sets SMTP debug flag.
Public property DebugStream
Gets/Sets debug output stream.
Protected property DesignMode
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.)
Protected property Events
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.)
Public property FromAddress
Gets/Sets the SMTP FROM address.
Public property HeloAddress
Gets/Sets the SMTP HELO address.
Public property Hostname
Gets/Sets the SMTP server host name.
Public property LicenseKey
License key.
Public property Port
Gets/Sets the SMTP server port number.
Public property ProxyHostname
Gets/Sets the hostname or IP address of the Proxy server.
Public property ProxyPassword
Gets/Sets the password used to log in to the Proxy server.
Public property ProxyPort
Gets/Sets the port of the Proxy server.
Public property ProxyType
Gets/Sets the type of Proxy server.
Public property ProxyUsername
Gets/Sets the username used to log in to the Proxy server.
Public property Site
Gets or sets the ISite of the Component.
(Inherited from Component.)
Public property Timeout
Gets/Sets the Socket Timeout parameter.
Public property ToAddress
Gets/Sets the SMTP TO address.

Events

  Name Description
Public event CommandSentEvent
Occurs after successfully sending a command to the SMTP server.
Public event ConnectedEvent
Occurs after a successful connection to the SMTP server.
Public event DataReceivedEvent
Occurs after successfully reading data from the SMTP server.
Public event DisconnectedEvent
Occurs after a successful disconnection from the SMTP server.
Public event Disposed
Occurs when the component is disposed by a call to the Dispose()()()() method.
(Inherited from Component.)

See Also