The Smtp type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Attach(Socket) |
Attaches client to specified socket.
(Inherited from TcpTextClient.) | |
| Attach(Socket, Boolean) |
Attaches client to specified socket.
(Inherited from TcpTextClient.) | |
| AttachSSL |
Attaches client to specified socket.
(Inherited from TcpTextClient.) | |
| Close()()()() |
Issues quit command (CloseCommand()()()() method), closes the connection, disposes the object.
(Inherited from TcpTextClient.) | |
| Close(Boolean) |
Issues quit command (CloseCommand()()()() method) and closes the connection.
(Inherited from TcpTextClient.) | |
| CloseCommand |
Sends the Quit command. And gets server response.
(Overrides TcpTextClient..::..CloseCommand()()()().) | |
| Connect(String) |
Connects to SMTP server on port 25. Use ConnectSSL(String) when SSL connection is needed.
| |
| Connect(IPEndPoint, Boolean) |
Connects to server.
(Inherited from TcpTextClient.) | |
| Connect(String, Int32) |
Connects to server. Use ConnectSSL(String, Int32) when SSL connection is needed.
(Inherited from TcpTextClient.) | |
| Connect(IPAddress, Int32, Boolean) |
Connects to server.
(Inherited from TcpTextClient.) | |
| Connect(String, Int32, Boolean) |
Connects to server.
(Inherited from TcpTextClient.) | |
| ConnectSSL(String) |
Connects to SMTP server using SSL on port 465.
| |
| ConnectSSL(String, Int32) |
Connects to server using SSL.
(Inherited from TcpTextClient.) | |
| Data()()()() |
Sends "DATA" command.
| |
| Data(Boolean) |
Sends "DATA" command.
| |
| Dispose |
Releases all resources acquired by this object. Closes connection, without issuing any quit commands.
(Inherited from TcpTextClient.) | |
| Ehlo()()()() |
Says hello to the server. Uses local IP address as domain name.
This command is sent automatically you don't need to resend it.
| |
| Ehlo(String) |
Sends EHLO (Extended HELO) to the server.
| |
| Ehlo(HeloType, String) |
Says hello to the server.
| |
| Equals | (Inherited from Object.) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetServerGreeting |
Receives server's greeting.
(Overrides TcpTextClient..::..GetServerGreeting()()()().) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Helo |
Sends HELO to the server.
| |
| Login |
Logs user in using AUTH LOGIN command. This method sends the password in clear text (BASE64), unless SSL connection is used.
| |
| LoginCRAM |
Logs user in using AUTH CRAM-MD5 command. This method does NOT send the password in clear text.
| |
| LoginDIGEST |
Logs user in using AUTH DIGEST-MD5 command. This method does NOT send the password in clear text.
| |
| LoginOAUTH |
Logs user in using AUTH XOAUTH command. This method does NOT send the password.
You can use OAuth class to create the key.
| |
| LoginPLAIN(String, String) |
Logs user in using AUTH PLAIN command. This method sends the password in clear text (BASE64), unless SSL connection is used.
| |
| LoginPLAIN(String, String, String) |
Logs user in using AUTH PLAIN command. This method sends the password in clear text (BASE64), unless SSL connection is used.
| |
| MailFrom(String) |
Sends "MAIL FROM:" command.
| |
| MailFrom(String, Boolean) |
Sends "MAIL FROM:" command.
| |
| MailFrom(String, List<(Of <<'(CommandParameter>)>>), Boolean) |
Sends "MAIL FROM:" command.
| |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| RcptTo(String) |
Sends "RCPT TO:" command.
| |
| RcptTo(String, Boolean) |
Sends "RCPT TO:" command.
| |
| RcptTo(String, List<(Of <<'(CommandParameter>)>>), Boolean) |
Sends "RCPT TO:" command.
| |
| Send |
Sends the text command to server.
Adds "\r\n" to the command.
(Inherited from TcpTextClient.) | |
| SendCommand(String) |
Sends command which expects to receive multi-line response e.g. "EHLO".
| |
| SendCommand(String, Boolean) |
Sends command which expects to receive multi-line response e.g. "EHLO".
| |
| SendMessage(IMail) |
Sends single message.
| |
| SendMessage(ISmtpMail) |
Sends single message.
| |
| SendMessage(IMail, Boolean) |
Sends single message.
| |
| SendMessage(ISmtpMail, Boolean) |
Sends single message.
| |
| StartTLS |
Sends 'STARTTLS' command and initializes SSL connection (issues EHLO command).
| |
| SupportedAuthenticationMethods |
Lists authentication methods supported by the remote server.
| |
| SupportedExtensions |
Lists extensions supported by the remote server (e.g. STARTTLS)
| |
| SwitchToSSL |
Switches to SSL stream, authenticates as client.
(Inherited from TcpTextClient.) | |
| ToString | (Inherited from Object.) | |
| UseBestLogin |
Logs user in using best available method.
|