M
msavoj
I have a windows forms application in C# that uses MAPI
and Outlook.application object for automatic send and it
works fine with Microsoft Outlook.
Outlook.Application oApp = new Outlook.Application();
Outlook.NameSpace oNS = oApp.GetNamespace("MAPI");
oNS.Logon("", null, null, null);
Outlook.MAPIFolder oMailFolder =
oNS.GetDefaultFolder
(Outlook.OlDefaultFolders.olFolderSentMail);
Outlook._MailItem oMailItem = (Outlook._MailItem)
oApp.CreateItem
(Outlook.OlItemType.olMailItem);
oMailItem.To = "";
oMailItem.Subject = "my subject";
oMailItem.Body = "content";
The app crashes when running outlook express 6.0 with the
message below:
COM Object with CLSID{HKEY_CLASSES_ROOT\CLSID\{0006F03A-
0000-0000-C000-000000000046} is either not valid or not
registered.
Is there a step that I am missing?
and Outlook.application object for automatic send and it
works fine with Microsoft Outlook.
Outlook.Application oApp = new Outlook.Application();
Outlook.NameSpace oNS = oApp.GetNamespace("MAPI");
oNS.Logon("", null, null, null);
Outlook.MAPIFolder oMailFolder =
oNS.GetDefaultFolder
(Outlook.OlDefaultFolders.olFolderSentMail);
Outlook._MailItem oMailItem = (Outlook._MailItem)
oApp.CreateItem
(Outlook.OlItemType.olMailItem);
oMailItem.To = "";
oMailItem.Subject = "my subject";
oMailItem.Body = "content";
The app crashes when running outlook express 6.0 with the
message below:
COM Object with CLSID{HKEY_CLASSES_ROOT\CLSID\{0006F03A-
0000-0000-C000-000000000046} is either not valid or not
registered.
Is there a step that I am missing?