Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0 Outlook
hi using following code i can import all the personal folder from MAPI
 
</code>
 Outlook.MAPIFolder oMailFolder = null;
            Outlook.Application oApp = new Outlook.Application();
            Outlook.NameSpace oNS = oApp.GetNamespace("MAPI");
            oMailFolder = oNS.PickFolder();
 
            oApp = null;
            oNS = null
;
 
this gives a Outlook 2007 Select Folder window as a output as following image http://imgsrv.worldstart.com/mso-images/select-folder-outlook-2007.gif
 
but my issue is i have some filters e-mails in list of data grid view in my program
string senderMailAddress = txtMailAddress.Text.ToLower();
 
 List<unreademails> list = (List<unreademails>)dgvUnreadMails.DataSource;
                //List<string> myUnreadMailList;
                List<unreademails> filteredList = (List<unreademails>)(from ci in list
                                                                       where ci.SenderAddress.StartsWith(senderMailAddress)
 
                                                                       select ci).ToList<unreademails>();
                dgvUnreadMails.DataSource = filteredList;</unreademails></unreademails></unreademails></string></unreademails></unreademails>
 
wht i need to do is i need to save those mails in datagrid to selected inbox forder
but dosent have idea to do it Frown | :( Frown | :(
pls help thanx for ur kind help
Posted 17-Jun-10 8:32am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 505
1 Maciej Los 325
2 Richard MacCutchan 265
3 Mathew Soji 220
4 BillWoodruff 210
0 OriginalGriff 8,804
1 Sergey Alexandrovich Kryukov 7,457
2 DamithSL 5,689
3 Maciej Los 5,279
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web02 | 2.8.1411028.1 | Last Updated 17 Jun 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100