![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
I wish to copy the original mail to another separate folder. My code is as follows: using Outlook = Microsoft.Office.Interop.Outlook MailItem mailItem; // mailItem is set accordingly. Outlook.Namespace namespc = mailItem.Application.GetNamespace("MAPI"); Outlook.folder = (Outlook.Folder)namespc.GetDefaultFolder(Outlook.O lDefaultFolders.olFolderDrafts); Outlook.MailItem tempMail = (Outlook.MailItem)mailItem.Copy(); // This is the statement where mailItem.Saved changes from true to false Outlook.MailItem newMail = (Outlook.MailItem)tempMail.Move(folder); Pls advise why this phenomenon is observed. |
Ads |
#2
|
|||
|
|||
![]()
Which item is not saved? If it's the copy item just save it.
-- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Scratch Head" Scratch wrote in message ... Hi, I wish to copy the original mail to another separate folder. My code is as follows: using Outlook = Microsoft.Office.Interop.Outlook MailItem mailItem; // mailItem is set accordingly. Outlook.Namespace namespc = mailItem.Application.GetNamespace("MAPI"); Outlook.folder = (Outlook.Folder)namespc.GetDefaultFolder(Outlook.O lDefaultFolders.olFolderDrafts); Outlook.MailItem tempMail = (Outlook.MailItem)mailItem.Copy(); // This is the statement where mailItem.Saved changes from true to false Outlook.MailItem newMail = (Outlook.MailItem)tempMail.Move(folder); Pls advise why this phenomenon is observed. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
MailItem object has no property for when a reply was sent | mmoore | Outlook and VBA | 3 | December 14th 09 01:16 AM |
Regarding MailItem.Body Property | Bharathi | Outlook and VBA | 3 | June 22nd 07 03:47 PM |
problem using Parent property of MailItem | [email protected] | Outlook and VBA | 4 | March 31st 07 10:39 AM |
MailItem To property and display name | Olivier Langlois | Outlook and VBA | 1 | September 11th 06 06:10 PM |
Set MailItem.Sender Property | Joshua Ellul | Add-ins for Outlook | 2 | June 8th 06 07:30 PM |