A
Austin Stephens
I am new to the groups. However I did read for two days (Sue does seem to
answer 90 percent of the questions) ïŠ.
I realize this is a VBA group but I am sure my C# code does not enter into
my question.
I create a new MailItem and just want to save it into a Folder other than
the olFolderDrafts.
Here is my starting code:
ApplicationClass o = new ApplicationClass();
NameSpace outlookNS = o.GetNamespace("MAPI");
MAPIFolder folder =
outlookNS.GetDefaultFolder(OlDefaultFolders.olFolderInbox);
Outlook.MailItem newItem = o.CreateItem(OlItemType.olMailItem) as MailItem;
…
newItem.Save();
I would like: |newItem.SaveAs(“???â€, myFolder);| to work but,
SaveAs wants a string Path, plus the Object Type: OlDefaultFolders.
Thanks...
Austin
answer 90 percent of the questions) ïŠ.
I realize this is a VBA group but I am sure my C# code does not enter into
my question.
I create a new MailItem and just want to save it into a Folder other than
the olFolderDrafts.
Here is my starting code:
ApplicationClass o = new ApplicationClass();
NameSpace outlookNS = o.GetNamespace("MAPI");
MAPIFolder folder =
outlookNS.GetDefaultFolder(OlDefaultFolders.olFolderInbox);
Outlook.MailItem newItem = o.CreateItem(OlItemType.olMailItem) as MailItem;
…
newItem.Save();
I would like: |newItem.SaveAs(“???â€, myFolder);| to work but,
SaveAs wants a string Path, plus the Object Type: OlDefaultFolders.
Thanks...
Austin