V
Visual Systems AB \(Martin Arvidsson\)
Hi!
I was testing an application that is writing a mail and sends it to a
recieptiens. I then came across
a couple of ??? in my head, coul anyone briefly tell me what the difference
is between this and where in the help i can read more about it
First out...
Outlook.Application oApp = new Outlook.Application();
My guess is that this create a new object oApp from this
Outlook.Application? Right?
Then the following, i just don't get, what they do and what it is called...
Outlook.NameSpace oNS = oApp.GetNamespace("mapi");
(Why not xxx = new xxx)
Outlook.MailItem oMsg =
(Outlook.MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);
Outlook.Recipients oRecips = (Outlook.Recipients)oMsg.Recipients;
Thanx in advance for any help
Regards
Martin Arvidsson
I was testing an application that is writing a mail and sends it to a
recieptiens. I then came across
a couple of ??? in my head, coul anyone briefly tell me what the difference
is between this and where in the help i can read more about it
First out...
Outlook.Application oApp = new Outlook.Application();
My guess is that this create a new object oApp from this
Outlook.Application? Right?
Then the following, i just don't get, what they do and what it is called...
Outlook.NameSpace oNS = oApp.GetNamespace("mapi");
(Why not xxx = new xxx)
Outlook.MailItem oMsg =
(Outlook.MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);
Outlook.Recipients oRecips = (Outlook.Recipients)oMsg.Recipients;
Thanx in advance for any help
Regards
Martin Arvidsson