SmtpProtocol ClassIpswitch.Messaging.Framework
Encapsulates a connection with an SMTP server and provides commands and responses to/from that server.
Inheritance Hierarchy

SystemObject
  BaseProtocolSmtpResponse
    Ipswitch.Messaging.Framework.MailSmtpProtocol

Namespace: Ipswitch.Messaging.Framework.Mail
Assembly: Ipswitch.Messaging.Framework (in Ipswitch.Messaging.Framework.dll) Version: 1.0.0.0
Syntax

public class SmtpProtocol : BaseProtocol<SmtpResponse>

The SmtpProtocol type exposes the following members.

Constructors

  NameDescription
Public methodSmtpProtocol
Initialize a new SmtpProtocol instance.
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetResponse
Get a response from the server containing the response code and message (or messages).
(Overrides BaseProtocol.GetResponse.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSendData
Send a Data command (DATA) to the server.
Public methodSendEhlo
Send an extended hello greeting to the SMTP server using the indicated identity.
Public methodSendEndOfData
Send an end-of-data sequence (CRLF.CRLF) to the server.
Public methodSendHelo
Send a fallback hello greeting command to the server (HELO) using the indicated identity.
Public methodSendMailFrom
Send a Mail From command to the server.
Public methodSendQuit
Send a Quit/Exit command (QUIT) to the server.
Public methodSendRcptTo
Send a Recipient (RCPT TO) command to the server.
Public methodSendRset
Send a Reset command (RSET) to the server.
Public methodSendStartTls
Send a Start TLS command to the server (STARTTLS).
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
See Also

Reference