Saving email into a nested folder -- simple question?
- From: "Joseph Boland" <JosephBoland@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 13 Jul 2005 15:43:02 -0700
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
.
- Follow-Ups:
- Re: Saving email into a nested folder -- simple question?
- From: Sue Mosher [MVP-Outlook]
- Re: Saving email into a nested folder -- simple question?
- Prev by Date: "use ms word to edit messages"
- Next by Date: Re: No Access to some properties. Error 2147221233
- Previous by thread: "use ms word to edit messages"
- Next by thread: Re: Saving email into a nested folder -- simple question?
- Index(es):
Relevant Pages
|