The InternetMail class enables a developer to create, send and retrieve e-mail messages. The class implements the Simple Mail Transfer Protocol (SMTP) for sending messages, the Post Office Protocol (POP3) for retrieving messages from a mail server and the Multipurpose Internet Mail Extensions (MIME) standard for composing messages.
For a list of all members of this type, see InternetMail Members.
System.Object
SocketTools.InternetMail
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
The InternetMail class provides a simplified interface for composing, sending and retrieving e-mail messages. The class was designed for ease-of-use and flexibility, without the inherent learning curve and additional coding required when using multiple components. In many cases, e-mail functionality is simply one feature in an already complex project. Instead of setting dozens of properties and writing many lines of code to connect the output of one control to the input of another, the InternetMail class requires just two method calls to compose and deliver a message. The simple elegance of the component's interface translates directly into fewer lines of source code to write, debug and maintain. In turn, this allows the developer to focus his efforts on the core application without sacrificing features that add value to the end-user.
The class offers a comprehensive interface, providing the developer with everything that he needs to incorporate e-mail functionality in an application. Many of the class' properties control the contents of a message, such as the list of recipients, the subject of the message and the message body. Methods are used to compose new messages, retrieve messages from a mail server and deliver messages to one or more recipients. Messages can also be managed on the mail server, or downloaded to the local system and stored in a file or a database record. The developer has complete access to all of the headers in the message, and can create custom application-specific header fields if needed. Event notifications enable the developer to provide the user with feedback, such as the progress of sending or retrieving a message. Advanced features such as delivery status notification, support for relay servers and secure encrypted connections are easily implemented by simply setting a few properties.
Namespace: SocketTools
Assembly: SocketTools.InternetMail (in SocketTools.InternetMail.dll)
InternetMail Members | SocketTools Namespace