Perform authentication (according to RFC 4954)
Sends base64-encode password
Sends base64-encoded login
Send base64-encoded authentication data according to RFC 2245. Need to be performed after data method call;
Performs socket connection establishment. connect is the first method to be called after SmtpClient instantiation.
Low-level method to initiate sending of the message body. Must be called after rcpt method call.
Sends the body of message to server. Must be called after data method. Also dataBody sends needed suffix to signal about the end of the message body.
Performs clean disconnection from server. It is recommended to use disconnect after quit method which signals SMTP server about end of the session.
Initial message to send after connection. Retrieves information about SMTP server configuration
EXPN expands mailing list on the server. If mailing list is not available for you, you receive appropriate error reply, else you receive a list of mailiing list subscribers.
Implementation of request/response pattern for easifying communication with SMTP server.
Initial message to send after connection. Nevertheless it is recommended to use ehlo() instead of this method in order to get more information about SMTP server configuration.
Low-level method to initiate process of sending mail. This can be called either after connect or after helo/ehlo methods call.
A no operation message. essage that does not invoke any specific routine on server, but still the reply is received.
Parses server reply and converts it to 'SmtpReply' structure.
Performs disconnection from server. In one session several mails can be sent, and it is recommended to do so. quit forces server to close connection with client.
Low-level method to specify recipients of the mail. Must be called after
Convenience method to receive data from socket as a string.
This method cancels mail transmission if mail session is in progress (after mail method was called).
Convenience method to send whole buffer of data into socket.
Send command indicating that TLS encrypting of socket data stream has started.
This method asks server to verify if the user's mailbox exists on server. You can pass username or <[e-mail]> as an argument. The result is a reply that contains e-mail of the user, or an error code.
Low-level synchronous API for implementing SMTP clients.
SmtpClient handles: + TCP data transmission and buffers management + TLS/SSL channel encryption + SMTP protocol request/reply handling + transport layer exceptions
SmtpClient does NOT handle: * semantic class usage mistakes like bad commands sequences
Supported SMTP commands: NOOP, HELO, EHLO, MAIL, RSET, RCPT, DATA (data, dataBody), AUTH (auth, authPlain), STARTTLS, VRFY, EXPN QUIT
Supported authentication methods: PLAIN