SocketTools .NET Edition

SmtpClient Class

Implements the Simple Mail Transfer Protocol.

For a list of all members of this type, see SmtpClient Members.

System.Object
   SocketTools.SmtpClient

[Visual Basic]
Public Class SmtpClient
    Implements IDisposable
[C#]
public class SmtpClient : IDisposable

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The Simple Mail Transfer Protocol (SMTP) enables applications to deliver email messages to one or more recipients. The class provides an interface for addressing and delivering messages, and extended features such as user authentication and delivery status notification. There is no requirement to have a specific email application installed or certain types of servers installed on the local system. The class can be used to deliver mail through a wide variety of systems, from standard UNIX based mail servers to Windows systems running Exchange or Lotus Notes and Domino.

Using this class, messages can be delivered directly to the recipient, or they can be routed through a relay server, such as an Internet Service Provider's mail system. The SocketTools.MailMessage class can be integrated with this class in order to provide an extremely simple, yet flexible interface for composing and delivering messages.

This class supports secure connections using the standard TLS protocols. Both implicit and explicit TLS connections can be established, enabling the class to work with a wide variety of servers.

Requirements

Namespace: SocketTools

Assembly: SocketTools.SmtpClient (in SocketTools.SmtpClient.dll)

See Also

SmtpClient Members | SocketTools Namespace