![]() |
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,
What I need is to save an email which is sent out from MSO as a file, which is a frozen copy of the mail sent. 1. To do the above I need to find out the mail from Sent Items for the mail which was sent out from Outbox. What I know is the EntryId changes and there is no other property to create a link between these 2 mail items ie. After issuing loMailItem.Send(), how do I get hold of the mail from sent items, to issue loMailItem.SaveAs() and create a frozen copy ? 2. I noticed that MS Outlook has a option 'Not to save a copy in Sent Items', in this case how to I create a file with the frozen copy ? Could someone please give some hints. |
#2
|
|||
|
|||
![]()
1) Before you call Send, change the value of the BillingInformation property to some string. When the MAPIFolder.Items.ItemAdd event fires on the Sent Items folder, check the value of BillingInformation to see if it contains the marker you set. If it does, call SaveAs.
2) The best you can do in that case is save a copy of the unsent item. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "DPM" wrote in message ... Hi, What I need is to save an email which is sent out from MSO as a file, which is a frozen copy of the mail sent. 1. To do the above I need to find out the mail from Sent Items for the mail which was sent out from Outbox. What I know is the EntryId changes and there is no other property to create a link between these 2 mail items ie. After issuing loMailItem.Send(), how do I get hold of the mail from sent items, to issue loMailItem.SaveAs() and create a frozen copy ? 2. I noticed that MS Outlook has a option 'Not to save a copy in Sent Items', in this case how to I create a file with the frozen copy ? Could someone please give some hints. |
#3
|
|||
|
|||
![]()
Sue,
Thanks. It would be great if you could help me with the further problems too. 1) Rather than waiting until MAPIFolder.Items.ItemAdd event to fire, is there a method to read the sent mail item immediately, as our programs which communicate with Outlook will have to wait until the mail is sent ? ie. If there is an problem with the internet that blocks mails being sent out. 2) Saving a copy from the Drafts folder, results in an editable msg file. But from Sent items it's a frozen copy. Can I create a frozen copy from the Drafts folder ? "Sue Mosher [MVP-Outlook]" wrote in message ... 1) Before you call Send, change the value of the BillingInformation property to some string. When the MAPIFolder.Items.ItemAdd event fires on the Sent Items folder, check the value of BillingInformation to see if it contains the marker you set. If it does, call SaveAs. 2) The best you can do in that case is save a copy of the unsent item. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "DPM" wrote in message ... Hi, What I need is to save an email which is sent out from MSO as a file, which is a frozen copy of the mail sent. 1. To do the above I need to find out the mail from Sent Items for the which was sent out from Outbox. What I know is the EntryId changes and there is no other property to create a link between these 2 mail items ie. After issuing loMailItem.Send(), how do I get hold of the mail from sent items, to issue loMailItem.SaveAs() and create a frozen copy ? 2. I noticed that MS Outlook has a option 'Not to save a copy in Sent Items', in this case how to I create a file with the frozen copy ? Could someone please give some hints. |
#4
|
|||
|
|||
![]()
1) Even if you send items immediately (the techniques for which depend on your Outlook version), you still have to wait until the item is in Sent Items if you want the sender and time information to be in the item you save.
2) No .msg file is itself directly editable. If you open it and click Save, you save a copy back to the Outlook folders. The .msg file is not updated unless you choose Save as and replace the original .msg file. Also, the body of the "frozen" message can be edited and saved back into Outlook or used to replace the .msg file. All the user has to do is choose Edit | Edit Message. If you want the user to be unable to replace the .msg file (as above), you'd need to set the file as read-only (not something Outlook methods can do). -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "DPM" wrote in message ... Sue, Thanks. It would be great if you could help me with the further problems too. 1) Rather than waiting until MAPIFolder.Items.ItemAdd event to fire, is there a method to read the sent mail item immediately, as our programs which communicate with Outlook will have to wait until the mail is sent ? ie. If there is an problem with the internet that blocks mails being sent out. 2) Saving a copy from the Drafts folder, results in an editable msg file. But from Sent items it's a frozen copy. Can I create a frozen copy from the Drafts folder ? "Sue Mosher [MVP-Outlook]" wrote in message ... 1) Before you call Send, change the value of the BillingInformation property to some string. When the MAPIFolder.Items.ItemAdd event fires on the Sent Items folder, check the value of BillingInformation to see if it contains the marker you set. If it does, call SaveAs. 2) The best you can do in that case is save a copy of the unsent item. "DPM" wrote in message ... Hi, What I need is to save an email which is sent out from MSO as a file, which is a frozen copy of the mail sent. 1. To do the above I need to find out the mail from Sent Items for the which was sent out from Outbox. What I know is the EntryId changes and there is no other property to create a link between these 2 mail items ie. After issuing loMailItem.Send(), how do I get hold of the mail from sent items, to issue loMailItem.SaveAs() and create a frozen copy ? 2. I noticed that MS Outlook has a option 'Not to save a copy in Sent Items', in this case how to I create a file with the frozen copy ? Could someone please give some hints. |
#5
|
|||
|
|||
![]()
Thanks.
"Sue Mosher [MVP-Outlook]" wrote in message ... 1) Even if you send items immediately (the techniques for which depend on your Outlook version), you still have to wait until the item is in Sent Items if you want the sender and time information to be in the item you save. 2) No .msg file is itself directly editable. If you open it and click Save, you save a copy back to the Outlook folders. The .msg file is not updated unless you choose Save as and replace the original .msg file. Also, the body of the "frozen" message can be edited and saved back into Outlook or used to replace the .msg file. All the user has to do is choose Edit | Edit Message. If you want the user to be unable to replace the .msg file (as above), you'd need to set the file as read-only (not something Outlook methods can do). -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "DPM" wrote in message ... Sue, Thanks. It would be great if you could help me with the further problems too. 1) Rather than waiting until MAPIFolder.Items.ItemAdd event to fire, is there a method to read the sent mail item immediately, as our programs which communicate with Outlook will have to wait until the mail is sent ? ie. If there is an problem with the internet that blocks mails being sent out. 2) Saving a copy from the Drafts folder, results in an editable msg file. But from Sent items it's a frozen copy. Can I create a frozen copy from the Drafts folder ? "Sue Mosher [MVP-Outlook]" wrote in message ... 1) Before you call Send, change the value of the BillingInformation property to some string. When the MAPIFolder.Items.ItemAdd event fires on the Sent Items folder, check the value of BillingInformation to see if it contains the marker you set. If it does, call SaveAs. 2) The best you can do in that case is save a copy of the unsent item. "DPM" wrote in message ... Hi, What I need is to save an email which is sent out from MSO as a file, which is a frozen copy of the mail sent. 1. To do the above I need to find out the mail from Sent Items for the which was sent out from Outbox. What I know is the EntryId changes and there is no other property to create a link between these 2 mail items ie. After issuing loMailItem.Send(), how do I get hold of the mail from sent items, to issue loMailItem.SaveAs() and create a frozen copy ? 2. I noticed that MS Outlook has a option 'Not to save a copy in Sent Items', in this case how to I create a file with the frozen copy ? Could someone please give some hints. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to save MS Oulook email to eml file type. | Pleo | Outlook - General Queries | 4 | June 23rd 07 02:26 AM |
Save email to text file daily | research_stuff | Outlook and VBA | 1 | June 1st 07 06:41 AM |
How can I save specific emails to d:\email as a .txt file? | sthana | Outlook and VBA | 1 | December 7th 06 07:32 AM |
Save email as text file macro | Simon | Outlook and VBA | 7 | August 10th 06 05:10 PM |
How do I save a calendar as a file to be used to email? | lpaun | Outlook - Calandaring | 1 | February 21st 06 09:37 PM |