Programmatically open an email from a POP3 and extract an attachment

Posted by Josh on Stack Overflow See other posts from Stack Overflow or by Josh
Published on 2009-07-21T15:26:52Z Indexed on 2010/05/19 3:20 UTC
Read the original article Hit count: 386

Filed under:
|
|

We have a vendor that sends CSV files as email attachments. These CSV files contain statuses that are imported into our application. I'm trying to automate the process end-to-end, but it currently depends on someone opening an email, saving the attachment to a server share, so the application can use the file.

Since I cannot convince the vendor to change their process, such as offering an FTP location or a Web Service, I'm stuck with trying to automate the existing process.

Does anyone know of a way to programmatically open an email from a POP3 account and extract an attachment? The preferred solution would reside on a Windows 2003 server, be written VB.NET and secure. The application can reside on the same server as the POP3 server, for example, we could setup the free POP3 server that comes with Windows Server and pull against the mail file stored on the file system.

BTW, we are willing to pay for an off-the-shelf solution, if one exists.

Note: I did look at this question but the answer points to a CodeProject solution that doesn't deal with attachments.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about vb.net