A
Appian Brendan
This seems trivial, but I just can't seem to figure out this problem. I
retrieve a sub-folder of the inbox which I created earlier. Then I get its
Items, and then add an Item to the Items list using the Add method. But when
I go into Outlook the sub-folder is still empty. Here's the code:
Outlook.Items subItems = subFolder.Items;
testItem = (Outlook._MailItem) subItems.Add(Outlook.OlItemType.olMailItem);
testItem.HTMLBody = "<HTML><H2>The body of this message will appear in
HTML.</H2><BODY>Enter the message text here. </BODY></HTML>";
If I call Display() on the item, it will display, and if I call Save() it
will save the item, but to the Drafts folder. How do I get it to appear in
my sub folder?
Background info: I'm writing C# code in VS .NET and programming for Outlook
2000 and later.
Thanks
retrieve a sub-folder of the inbox which I created earlier. Then I get its
Items, and then add an Item to the Items list using the Add method. But when
I go into Outlook the sub-folder is still empty. Here's the code:
Outlook.Items subItems = subFolder.Items;
testItem = (Outlook._MailItem) subItems.Add(Outlook.OlItemType.olMailItem);
testItem.HTMLBody = "<HTML><H2>The body of this message will appear in
HTML.</H2><BODY>Enter the message text here. </BODY></HTML>";
If I call Display() on the item, it will display, and if I call Save() it
will save the item, but to the Drafts folder. How do I get it to appear in
my sub folder?
Background info: I'm writing C# code in VS .NET and programming for Outlook
2000 and later.
Thanks