Extraire les emails depuis LotusNotes
Bonjour,
SVP j'essaye de lire mes emails depuis Lotus note avec le code suivant
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| Domino.NotesSession session = new Domino.NotesSession();
while (true)
{
try
{
session.Initialize("07041983");//parametres.pwdlotus);
break;
}
catch (Exception ex)
{
pwdlotusfrm pwd = new pwdlotusfrm();
pwd.ShowDialog();
}
}
NotesDatabase mailDb = session.GetDatabase("", "names.nsf", false);
NotesDbDirectory dir = session.GetDbDirectory("names.nsf");
sessionserver.GetDatabase("Servermsg", "names.nsf", false);
NotesView view = mailDb.GetView("($Inbox)"); |
Le problème c'est queGetView("($Inbox)") retourne tjr NULL!!!
quelqu'un a il une proposition pour dépasser ce problème ?
Merci