PowerTCP Mail for .NET
from $349.00Available Platforms
New PowerTCP Mail for .NET sample Projects have been added to include .NET Core 2.0 projects, referencing the Dart.Mail.Standard dll. Look for the to identify these examples.
Code Examples
These examples demonstrate basic product functionality.
General Email Examples
Code Snippet | Description |
---|---|
OAuth Authentication | Using OAuth authentication |
Non-blocking operation | How to use Start and Marshal to avoid blocking the User Interface. |
Saving Attachments | How to save attachments to disk. |
Saving Resources | How to save resources (HTML inline files) to disk. |
Saving Messages | How to save messages to disk. |
IMAP Examples
Code Snippet | Description |
---|---|
Connect to an Imap Server | How to connect to an IMAP server and authenticate with encryption options. |
Retrieve all Messages | How to retrieve all messages in a mailbox. |
Retrieve Message Headers | How to get only the headers of the messages in a mailbox. |
Displaying Progress | How to display progress while retrieving messages. |
Mailbox Operations | How to create, rename and delete mailboxes. |
Mailbox Subscription | How to subscribe to a mailbox. |
Searching Messages | How to search for and retrieve messages that fit a specific criteria. |
Adding a Message | How to add a message to a mailbox. |
Copying Messages | How to copy messages from one mailbox to another. |
IMAP IDLE | Using the IMAP IDLE command. |
Deleting a Message | How to delete a single message. |
Delete Multiple Messages | How to delete a set or range of messages. |
Download Attachments | How to download a message's attachments without downloading the entire message. |
SMTP Examples
Code Snippet | Description |
---|---|
Connect to an SMTP Server | How to connect to an SMTP server and authenticate with encryption options. |
Send a Message | How to create and send a mail message. |
Non-blocking Operations | How to send a message on a worker thread to avoid blocking the User Interface. |
POP Examples
Code Snippet | Description |
---|---|
Connect to a POP Server | How to connect to a POP server and authenticate with encryption options. |
Retrieve all Messages | How to retrieve all messages from the server. |
Retrieve Headers | How to get only the headers of the messages on the server. |
Save Messages | How to save retrieved messages to disk. |
Displaying Progress | How to display progress while retrieving messages. |
Session Logging | How to log a session to a textbox |
Mail Message Examples
Code Snippet | Description |
---|---|
Add an Attachment | How to add an attachment to a message. |
Reply Messages | How to create a reply message. |
Reply Separator | How to create a custom reply separator. |
Forward Messages | How to create a forward message. |
Redirect Messages | How to create a redirect message. |
Custom Reply Message | How to create a custom reply message. |
HTML Messages | How to create HTML messages. |
Custom Mail Headers | How to add custom mail headers to a message. |
S/MIME Signing | How to create a signed message using S/MIME. |
S/MIME Encryption | How to create an encrypted message using S/MIME. |
Decoding S/MIME Messages | How to decode S/MIME messages. |
Using DSN | How to use DSN. |
Example Projects
The samples are fully functioning C# and VB applications demonstrating the Imap, Pop and Smtp components, the MessageEditor control, and include complete source code.
Samples marked with an * demonstrate how to obtain OAuth 2.0 credentials.
Example Name | Description |
---|---|
ImapDownloader ![]() |
Single-threaded console app demonstrates email downloading using the Imap component. |
PopDownloader ![]() |
Single-threaded console app demonstrates email downloading using the Pop component. |
MessageSender ![]() |
Single-threaded console app demonstrates sending email using the Smtp component. |
Imap Client * | Multi-threaded IMAP client with full-featured security options. |
Imap Client Task Async * | Same as Imap Client, but uses Task-based Asynchronous Pattern (.NET 4.5) |
Imap Part Retriever * | Multi-threaded IMAP client displays unpopulated message parts and supports their selective downloading. |
Message Editor | Demonstrates the MessageEditor control. Open, edit, save .eml files. |
Pop Client * | Multi-threaded POP client with full-featured security options. |
Pop Client Task Async * | Same as Pop Client, but uses Task-based Asynchronous Pattern (.NET 4.5) |
Smtp Client * | Multi-threaded SMTP client with full-featured security options. |
Smtp Client Task Async * | Same as Smtp Client, but uses Task-based Asynchronous Pattern (.NET 4.5) |
WebMail | A powerful web-based IMAP mail client that manages email on an IMAP server. |