Saving email into a nested folder -- simple question?



The VB.NET code below is supposed to create and save an email message in a
folder within the default drafts folder. It successfully creates the
subordinate folder but saves the email message in the root drafts folder
("Drafts"). Why?

'Create a mail folder for application use within the root email drafts folder.
mobjEmailDrafts =
mobjNamespace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderDrafts)
mobjMailFolder = mobjEmailDrafts.Folders.Add(AppMailFolder)
'...
mobjMailMsg = mobjMailFolder.Items.Add()
mobjRecipient = mobjMailMsg.Recipients.Add(RecipientEmailAddress)
mobjRecipient.Type = Outlook.OlMailRecipientType.olTo
mobjMailMsg.Subject = Subject
mobjMailMsg.Body = BodyText
mobjMailMsg.BodyFormat = Outlook.OlBodyFormat.olFormatPlain
mobjMailMsg.Save()
mobjMailMsg.Close(Outlook.OlInspectorClose.olSave)

--
Software Engineer
Educational & Community Supports
University of Oregon
Eugene, OR 97403-1235
.



Relevant Pages

  • Re: Messages that are Sent Frequently
    ... the (insert latest virus name here) virus, all mail sent to my personal ... | Is there a way to save a draft of an email message that will be sent ... | for it to stay in the drafts folder ... | so that next week I can send the exact same message to the exact same ...
    (microsoft.public.outlook)
  • Re: recover deleted file from drafts folder
    ... If you had clicked "Undo" immediately, that would have brought it back. ... Gary VanderMolen, MS-MVP ... the email even disappeared from my list in my drafts folder. ... >i accidently deleted an email message i was working on and had in my drafts> folder. ...
    (microsoft.public.windows.vista.mail)
  • Problem saving message to draft folder
    ... I'm using Outlook 2003 SP3. ... When starting an email message, ... I'm unable to save to the drafts folder. ... Office Word to edit messages, and deselected the option to Use Office Word to ...
    (microsoft.public.outlook.general)
  • Location of Saved Message Being Compossed via Excel Send Worksheet
    ... When I want to email an Excel worksheet to someone, ... If I cannot finish the email message and want ... Outlook 2007 saves this email message in my Inbox instead of my ... saved in my Drafts folder instead of the Inbox? ...
    (microsoft.public.excel.misc)