Downloading headers

The sample downloads headers for all the messages in the mailbox without downloading entire messages.

"From:", "To:" and "Subject:" fields are displayed for each downloaded message headers.

In ASP code, Server.HTMLEncode is used for encoding "<" and ">" characters (which often appear in e-mail addresses but not allowed in HTML) into their safe HTML equivalents. Visual Basic code does not require such encoding.