incoming e-mail RRS feed

  • Question

  • I have sharepoint 2007. There i have list with incoming mail. I want drop mail in different folders(in sharepoint i have three methods) - but i wanr drop in subfolders. How can i do that.

    I create folder where i put all incoming message. Then i run WF which must analyse message and drop it in necessary folders. But i dont understand how in WF i can work with folders in list. What it's folders in list in sharepoint?

    Saturday, August 28, 2010 10:51 AM


  • Hi,

    You could use the SPEmailEventReceiver class and override the EmailReceived method to parse the email message and populate the document library fields with data from email. It will also let you decide where (which folder) you want to drop the email to



    public class EmailParser : SPEmailEventReceiver
     public override void EmailReceived(SPList list, SPEmailMessage emailMessage, string receiverData)
      catch(Exception ex)

    Refer the below article for a complete solution with code.


    Please remember to mark your question as "answered" if it solves your problem.
    My SharePoint Blog
    • Marked as answer by Stanfford Liu Friday, September 10, 2010 3:33 AM
    Saturday, August 28, 2010 2:14 PM