A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to save a email, sent out, as a file



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 10th 07, 02:16 PM posted to microsoft.public.outlook.program_vba
DPM
external usenet poster
 
Posts: 21
Default How to save a email, sent out, as a file

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  
Old December 10th 07, 02:28 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to save a email, sent out, as a file

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  
Old December 11th 07, 04:51 AM posted to microsoft.public.outlook.program_vba
DPM
external usenet poster
 
Posts: 21
Default How to save a email, sent out, as a file

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
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.




  #4  
Old December 11th 07, 05:10 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to save a email, sent out, as a file

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
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.




  #5  
Old December 11th 07, 06:46 AM posted to microsoft.public.outlook.program_vba
DPM
external usenet poster
 
Posts: 21
Default How to save a email, sent out, as a file

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
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.






 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 07:06 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.