Please configure IMAP/POP3 access for other samples, it is used by all other samples around.
List all folders in IMAP account
Displays the list of all folders in an IMAP account, and lets the user select any folder to find out the total size of the folder in kilobytes, and other information. Supports folders with international filenames, non-selectable folders (like [Gmail] folder in Gmail accounts), folders with special flags like Drafts or Spam. Also displays the IMAP session log.
List all e-mails in Inbox using HTML table
Displays the list of all e-mails in an IMAP or POP3 inbox using <TABLE> and paging mechanism.
List all e-mails in Inbox using DataGrid and data binding
This advanced sample displays the list of all e-mails in an IMAP or POP3 inbox using ASP.NET DataGrid control with paging.
Show plain-text or HTML e-mail
Converts a plain-text e-mail into HTML (because the browser can't render plain-text) and dispays the body, some headers, and attachment filenames.
If the e-mail is in HTML format, the sample can display it as "simple HTML" (HTML to plain-text and then again to HTML), or display it "as-is" in the same frame or in IFRAME.
This sample also supports previous/next e-mail, compatible with paging and navigation, and provides links to the samples which can display embedded pictures or download/save attachments to the client.
Save attachments to client (use static links to temp files)
Attachment filenames from the previous sample become downloadable links (text body is not displayed). Example of A HREF: "Attachments/62AB292A518CDD9FF197FC3E9F25FB505327C2FE/report.doc".
Save attachments to client (via direct download, no temp files)
No attachments are stored on the filesystem and no disk I/O access occurs. The sample downloads the attachment directly from the e-mail server and transmits its data to the web client.
Show HTML body with linked resources (use static URLs to resources saved as temp files)
Saves all embedded resources (like inline images) into a folder and replaces Content-IDs with paths to the saved resources. Example of a generated IMG SRC: "Inline/62AB292A518CDD9FF197FC3E9F25FB505327C2FE/picture.gif".
The same as previous but generated IMG SRC values look like: "download.aspx?user_id=1234&message_id=62AB292A518CDD9FF197FC3E9F25FB505327C2FE&file_id=picture.gif". download.aspx script included.
Displays the raw data of the e-mail.
No more than that is displayed (for instance, no 'Back to Samples' link). This makes it possible to save the output of this sample into .EML file to get a properly formatted MIME file which you can then open with Mozilla Thunderbird, Outlook Express, or MailMessage class of MailBee.NET library.