Smtp Methods |
The Smtp type exposes the following members.
Name | Description | |
---|---|---|
Attach(Socket) |
Attaches client to specified connected socket.
(Inherited from ClientBase.) | |
Attach(Socket, Boolean) |
Attaches client to specified connected socket.
(Inherited from ClientBase.) | |
AttachSSL |
Attaches client to specified connected socket.
(Inherited from ClientBase.) | |
BeginConnect(String) |
Begins an asynchronous request for a remote server connection using DefaultPort.
| |
BeginConnect(IPEndPoint, Boolean) |
Begins an asynchronous request for a remote server connection.
(Inherited from ClientBase.) | |
BeginConnect(String, Int32) |
Begins an asynchronous request for a remote server connection. You can use BeginConnectSSL(String, Int32) when SSL/TLS connection is needed.
(Inherited from ClientBase.) | |
BeginConnect(String, AsyncCallback) |
Begins an asynchronous request for a remote server connection using DefaultPort.
| |
BeginConnect(String, Int32, Boolean) |
Begins an asynchronous request for a remote server connection.
(Inherited from ClientBase.) | |
BeginConnect(String, Int32, Boolean, AsyncCallback) |
Begins an asynchronous request for a remote server connection.
(Inherited from ClientBase.) | |
BeginConnectSSL(String) |
Begins an asynchronous request for a remote server secure connection using DefaultSSLPort and SSL/TLS.
| |
BeginConnectSSL(String, Int32) |
Begins an asynchronous request for a remote server secure connection using SSL/TLS.
(Inherited from ClientBase.) | |
BeginConnectSSL(String, AsyncCallback) |
Begins an asynchronous request for a remote server secure connection using DefaultSSLPort and SSL/TLS.
| |
BeginConnectSSL(String, Int32, AsyncCallback) |
Begins an asynchronous request for a remote server secure connection using SSL/TLS.
(Inherited from ClientBase.) | |
Close |
Sends QUIT command. Disconnects and releases all resources acquired by this object.
| |
Close(Boolean) |
Sends QUIT command. Disconnects and releases all resources acquired by this object.
| |
CloseAsync |
Sends QUIT command. Disconnects and releases all resources acquired by this object.
| |
CloseAsync(Boolean) |
Sends QUIT command. Disconnects and releases all resources acquired by this object.
| |
Connect(String) |
Connects to SMTP server on port 587. Use ConnectSSL(String) when SSL/TLS connection is needed.
| |
Connect(IPEndPoint, Boolean) |
Establishes connection to a remote server.
(Inherited from ClientBase.) | |
Connect(String, Int32) |
Establishes connection to a remote server. You can use ConnectSSL(String, Int32) when SSL/TLS connection is needed.
(Inherited from ClientBase.) | |
Connect(IPAddress, Int32, Boolean) |
Establishes connection to a remote server.
(Inherited from ClientBase.) | |
Connect(String, Int32, Boolean) |
Establishes connection to a remote server.
(Inherited from ClientBase.) | |
ConnectAsync(String) |
Connects to SMTP server on port 587. Use ConnectSSL(String) when SSL/TLS connection is needed.
| |
ConnectAsync(IPEndPoint, Boolean) |
Establishes connection to a remote server.
(Inherited from ClientBase.) | |
ConnectAsync(String, Int32) |
Establishes connection to a remote server. You can use ConnectSSL(String, Int32) when SSL/TLS connection is needed.
(Inherited from ClientBase.) | |
ConnectAsync(IPAddress, Int32, Boolean) |
Establishes connection to a remote server.
(Inherited from ClientBase.) | |
ConnectAsync(String, Int32, Boolean) |
Establishes connection to a remote server.
(Inherited from ClientBase.) | |
ConnectSSL(String) |
Connects to SMTP server using SSL/TLS on port 465.
| |
ConnectSSL(String, Int32) |
Establishes connection to a remote server using SSL.
(Inherited from ClientBase.) | |
ConnectSSLAsync(String) |
Connects to SMTP server using SSL/TLS on port 465.
| |
ConnectSSLAsync(String, Int32) |
Establishes connection to a remote server using SSL.
(Inherited from ClientBase.) | |
Dispose |
Releases all resources acquired by this object. Closes connection, without issuing any quit commands.
(Inherited from ClientBase.) | |
Dispose(Boolean) |
Releases all resources acquired by this object. Closes connection, without issuing any quit commands.
(Inherited from ClientBase.) | |
EndConnect |
Ends a pending asynchronous connection request.
(Inherited from ClientBase.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Login |
Logs user in using AUTH LOGIN command. This method sends the password in clear text (BASE64), unless SSL/TLS connection is used.
| |
LoginAsync |
Logs user in using AUTH LOGIN command. This method sends the password in clear text (BASE64), unless SSL/TLS connection is used.
| |
LoginCRAM |
Logs user in using AUTH CRAM-MD5 command. This method does NOT send the password in clear text.
| |
LoginCRAMAsync |
Logs user in using AUTH CRAM-MD5 command. This method does NOT send the password in clear text.
| |
LoginDIGEST(String, String) |
Logs user in using AUTH DIGEST-MD5 command. This method does NOT send the password in clear text.
| |
LoginDIGEST(String, String, String) |
Logs user in using AUTH DIGEST-MD5 command. This method does NOT send the password in clear text.
| |
LoginDIGESTAsync(String, String) |
Logs user in using AUTH DIGEST-MD5 command. This method does NOT send the password in clear text.
| |
LoginDIGESTAsync(String, String, String) |
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.
| |
LoginOAUTH2 |
Logs user in using AUTH XOAUTH2 command. This method does NOT send the password.
You can use DotNetOpenAuth to create the key.
You can check which authentication methods remote server supports using SupportedAuthenticationMethods method.
| |
LoginOAUTH2Async |
Logs user in using AUTH XOAUTH2 command. This method does NOT send the password.
You can use DotNetOpenAuth to create the key.
You can check which authentication methods remote server supports using SupportedAuthenticationMethods method.
| |
LoginOAUTHAsync |
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/TLS 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/TLS connection is used.
| |
LoginPLAINAsync(String, String) |
Logs user in using AUTH PLAIN command. This method sends the password in clear text (BASE64), unless SSL/TLS connection is used.
| |
LoginPLAINAsync(String, String, String) |
Logs user in using AUTH PLAIN command. This method sends the password in clear text (BASE64), unless SSL/TLS connection is used.
| |
LoginSSPI |
Logs user in using Negotiate mechanism. Target will be constructed as "smtp/" + TargetHost name.
| |
LoginSSPI(SSPIMechanism) | ||
LoginSSPI(SSPIMechanism, String) | ||
LoginSSPI(SSPIMechanism, String, String) | ||
LoginSSPI(SSPIMechanism, String, String, String) | ||
LoginSSPIAsync |
Logs user in using Negotiate mechanism. Target will be constructed as "smtp/" + TargetHost name.
| |
LoginSSPIAsync(SSPIMechanism) | ||
LoginSSPIAsync(SSPIMechanism, String) | ||
LoginSSPIAsync(SSPIMechanism, String, String) | ||
LoginSSPIAsync(SSPIMechanism, String, String, String) | ||
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Noop |
Sends NOOP command to the server. It does nothing and always succeeds.
Can be used to reset any inactivity auto-logout timer on the server.
| |
NoopAsync |
Sends NOOP command to the server. It does nothing and always succeeds.
Can be used to reset any inactivity auto-logout timer on the server.
| |
Send |
Sends specified byte array to the server.
(Inherited from ClientBase.) | |
SendAsync |
Sends specified byte array to the server.
(Inherited from ClientBase.) | |
SendCommand(String) |
Sends command to the SMTP server (e.g. "EHLO").
| |
SendCommand(String, Boolean) |
Sends command to the SMTP server (e.g. "EHLO").
| |
SendCommandAsync(String) |
Sends command to the SMTP server (e.g. "EHLO").
| |
SendCommandAsync(String, Boolean) |
Sends command to the SMTP server (e.g. "EHLO").
| |
SendMessage(IMail) |
Sends a single email message.
| |
SendMessage(SmtpMail) |
Sends a single email message.
| |
SendMessageAsync(IMail) |
Sends a single message.
| |
SendMessageAsync(SmtpMail) |
Sends a single message.
| |
StartTLS |
Sends 'STARTTLS' command and initializes SSL/TLS connection (issues EHLO command afterwards).
Not all servers support StartTLS. You can check which extensions remote server supports using SupportedExtensions method.
| |
StartTLSAsync |
Sends 'STARTTLS' command and initializes SSL/TLS connection (issues EHLO command afterward).
| |
SupportedAuthenticationMethods |
Lists authentication methods supported by the remote server.
| |
SupportedExtensions |
Lists extensions supported by the remote server (e.g. StartTLS)
| |
TcpKeepAlive |
Turns TCP protocol keep alive (SO_KEEPALIVE) option on.
(Inherited from ClientBase.) | |
TestMessageEnvelope(SmtpMail) |
Sends message envelope to the SMTP server. Doesn't send or verify message contents.
It can be used to verify if SMTP server accepts sender and recipient addresses.
| |
TestMessageEnvelope(String, String) |
Sends message envelope to the SMTP server. Doesn't send or verify message contents.
It can be used to verify if SMTP server accepts sender and recipient addresses.
| |
TestMessageEnvelopeAsync(SmtpMail) |
Sends message envelope to the SMTP server. Doesn't send or verify message contents.
It can be used to verify if SMTP server accepts sender and recipient addresses.
| |
TestMessageEnvelopeAsync(String, String) |
Sends message envelope to the SMTP server. Doesn't send or verify message contents.
It can be used to verify if SMTP server accepts sender and recipient addresses.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UseBestLogin |
Logs user in using best method available.
When no AUTH capability is found, this method switches to SSL/TLS (StartTLS) and tries again.
| |
UseBestLoginAsync |
Logs user in using best method available.
When no AUTH capability is found, this method switches to SSL/TLS (StartTLS) and tries again.
|