title: Programmatically open an email from a POP3 and extract an attachment
body: <p>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.</p>
  
  <p>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. </p>
  
  <p>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.</p>
  
  <p>BTW, we are willing to pay for an off-the-shelf solution, if one exists.</p>
  
  <p>Note: I did look at this <a href="https://stackoverflow.com/questions/808871/how-to-grab-attachment-programmatically-c-from-a-pop3-mail">question</a> but the answer points to a CodeProject solution that doesn't deal with attachments.</p>